@Override protected int textMatches(@NotNull CharSequence buffer, int start) { CharSequence text = myText(); if (text != null) { return LeafElement.leafTextMatches(text, buffer, start); } return super.textMatches(buffer, start); }