void (@NotNull LightweightWindowEvent event) { Window window = popup.isDisposed() ? null : ComponentUtil.getWindow(popup.getContent()); if (window != null) { Point expected = point.getScreenPoint(); Rectangle screen = ScreenUtil.getScreenRectangle(expected); int y = expected.y - window.getHeight() - editor.getLineHeight(); if (screen.y < y) window.setLocation(window.getX(), y); } }