[^maxim] trailing * is not needed in matchers (IDEA-106854)
(cherry picked from commit 6d9716e)