boolean (@NotNull JComponent comp, DataFlavor @NotNull [] transferFlavors) { EditorImpl editor = getEditor(comp); EditorDropHandler dropHandler = editor.getDropHandler(); if (dropHandler != null && dropHandler.canHandleDrop(transferFlavors)) { return true; } //should be used a better representation class if (Registry.is("debugger.click.disable.breakpoints") && ArrayUtil.contains(GutterDraggableObject.flavor, transferFlavors)) { return true; } if (editor.isViewer()) return false; int offset = editor.getCaretModel().getOffset(); if (editor.getDocument().getRangeGuard(offset, offset) != null) return false; return ArrayUtil.contains(DataFlavor.stringFlavor, transferFlavors); }