void (@NotNull Editor editor, char charTyped, @NotNull DataContext dataContext) { editor.putUserData(EditorImpl.DISABLE_CARET_SHIFT_ON_WHITESPACE_INSERTION, Boolean.TRUE); try { myDelegate.execute(editor, charTyped, dataContext); } finally { editor.putUserData(EditorImpl.DISABLE_CARET_SHIFT_ON_WHITESPACE_INSERTION, null); } }