RelativePoint () { RelativePoint result = CommonActionsPanel.getPreferredPopupPoint(this, myContextComponent); if (result != null) { return result; } LOG.error("Can't find toolbar button"); return RelativePoint.getCenterOf(myContextComponent); }