void (@NotNull CompletionInitializationContext context) { super.duringCompletion(context); Caret caret = context.getCaret(); Editor editor = context.getEditor(); context.setReplacementOffset(calcDefaultIdentifierEnd(editor, calcSelectionEnd(caret))); }