void (@NotNull Editor editor, Caret caret, DataContext dataContext) { boolean camelMode = editor.getSettings().isCamelWords(); int startOffset = editor.getCaretModel().getOffset(); int endOffset = EditorActionUtil.getNextCaretStopOffset(editor, WORD_END_IGNORE_LINE_BREAK, camelMode, true); if (startOffset != endOffset) { KillRingUtil.cut(editor, startOffset, endOffset); } }