TextRange (@NotNull Editor editor, boolean isCamel, boolean handleQuoted) { int startOffset = editor.getCaretModel().getOffset(); // IDEA-211756 "Delete to word end" is extremely inconvenient on whitespaces int endOffset = getNextCaretStopOffset(editor, CaretStopPolicy.BOTH, isCamel, handleQuoted); return TextRange.create(startOffset, endOffset); }