public boolean textMatches(@NotNull CharSequence buffer, int startOffset, int endOffset) {
    return textMatches(buffer, startOffset) == endOffset;
  }
public boolean textMatches(@NotNull CharSequence buffer, int startOffset, int endOffset)