SemanticEditorPosition (@NotNull Editor editor, int offset) { SemanticEditorPosition position = getPosition(editor, offset); if (position.isAt(Whitespace)) { if (position.hasLineBreaksAfter(offset)) return position; position.moveAfter(); } return position; }