boolean (@NotNull JComponent component, @NotNull RelativePoint point) { Component realDropTarget = UIUtil.getDeepestComponentAt(point.getOriginalComponent(), point.getOriginalPoint().x, point.getOriginalPoint().y); if (realDropTarget == null) realDropTarget = SwingUtilities.getDeepestComponentAt(point.getOriginalComponent(), point.getOriginalPoint().x, point.getOriginalPoint().y); if (myTabs.getVisibleInfos().isEmpty() && realDropTarget != null ) { JBTabsImpl tabs = UIUtil.getParentOfType(JBTabsImpl.class, realDropTarget); if (tabs == null || !tabs.isEditorTabs()) return false; } return !myTabs.contains(point.getPoint(myTabs)) || !myTabs.getVisibleInfos().isEmpty(); }