TextRange (@NotNull Editor editor, int cursorOffset, @NotNull CharCondition isWordPartCondition) { return getWordOrLexemeSelectionRange(editor, editor.getDocument().getImmutableCharSequence(), cursorOffset, isWordPartCondition); }