void (int startOffset, int length) { ThreadingAssertions.assertEventDispatchThread(); Editor editor = getEditor(); Document document = editor.getDocument(); RangeMarker marker = ConsoleTokenUtil.findTokenMarker(getEditor(), getProject(), startOffset); if (marker == null || ConsoleTokenUtil.getTokenType(marker) != ConsoleViewContentType.USER_INPUT) { return; } int endOffset = startOffset + length; if (startOffset >= 0 && endOffset >= 0 && endOffset > startOffset) { document.deleteString(startOffset, endOffset); } moveScrollRemoveSelection(editor, startOffset); }