void (@NotNull LargeFileEditorAccess largeFileEditorAccess) { ChangeLargeFileEncodingAction action = new ChangeLargeFileEncodingAction(myStatusBar); JComponent where = getComponent(); ListPopup popup = action.createPopup(largeFileEditorAccess.getVirtualFile(), largeFileEditorAccess.getEditor(), where); RelativePoint pos = JBPopupFactory.getInstance().guessBestPopupLocation(where); popup.showInScreenCoordinates(where, pos.getScreenPoint()); }