ListPopup (@NotNull DataContext dataContext, @NotNull SelectInContext context, List<SelectInTarget> targetVector) { DefaultActionGroup group = new DefaultActionGroup(); if (targetVector.isEmpty()) { group.add(new NoTargetsAction()); } else { for (int i = 0; i < targetVector.size(); i++) { SelectInTarget target = targetVector.get(i); group.add(SelectInTargetActionKt.createSelectInTargetAction(target, context)); } } return JBPopupFactory.getInstance().createActionGroupPopup( IdeBundle.message("title.popup.select.target"), group, dataContext, JBPopupFactory.ActionSelectionAid.ALPHA_NUMBERING, true ); }