void (@NotNull LightweightWindowEvent event) { Point location = component.getLocationOnScreen(); Dimension size = popup.getSize(); popup.setLocation(new Point(location.x + component.getWidth() - size.width, location.y + component.getHeight())); }