boolean (@NotNull MouseEvent me) { if (!myDragComponent.isShowing()) return false; Component component = me.getComponent(); if (NullableComponent.Check.isNullOrHidden(component)) return false; return canFinishDragging(myDragComponent, new RelativePoint(me)); }