boolean (@Nullable Point p, @Nullable Rectangle bounds) { if (p == null || bounds == null) { return false; } var leftPadding = this.getIpad().left; var iconWidth = myPopFrameIcon.getIconWidth(); return new Rectangle(leftPadding, 0, iconWidth, bounds.height).contains(p); }