ListPopup (@NotNull DataContext dataContext, @NotNull SelectInContext context, List<SelectInTarget> targetVector) { ListPopup popup; if (targetVector.isEmpty()) { DefaultActionGroup group = new DefaultActionGroup(); group.add(new NoTargetsAction()); popup = JBPopupFactory.getInstance().createActionGroupPopup(IdeBundle.message("title.popup.select.target"), group, dataContext, JBPopupFactory.ActionSelectionAid.MNEMONICS, true); } else { popup = JBPopupFactory.getInstance().createListPopup(new SelectInActionsStep(targetVector, context)); } return popup; }