boolean (DnDEvent aEvent) { aEvent.hideHighlighter(); aEvent.setDropPossible(false, ""); boolean canHandle = canHandleDropEvent(myProject, aEvent); if (!canHandle) return true; // highlight top of the tree Rectangle tableCellRect = new Rectangle(0, 0, JBUI.scale(300), JBUI.scale(12)); aEvent.setHighlighting(new RelativeRectangle(myTreeScrollPane, tableCellRect), DnDEvent.DropTargetHighlightingType.RECTANGLE); aEvent.setDropPossible(true); return false; }