public static @NotNull String getPrefix(@NotNull CharSequence text, int startOffset) {
    return text.subSequence(startOffset, getPrefixEndOffset(text, startOffset)).toString();
  }
public static @NotNull String getPrefix(@NotNull CharSequence text, int startOffset)