void (@NotNull AnActionEvent e) { JavaParameters parameters = new JavaParameters(); Module module = configuration.getConfigurationModule().getModule(); try { if (module != null) { parameters.configureByModule(module, JavaParameters.CLASSES_AND_TESTS); } else { parameters.configureByProject(configuration.getProject(), JavaParameters.CLASSES_AND_TESTS, null); } } catch (CantRunException ignore) { } DefaultActionGroup actionGroup = new DefaultActionGroup(ContainerUtil.map(parameters.getClassPath().getPathList(), entry -> { return new DumbAwareAction(entry) { //NON-NLS @Override public void actionPerformed(@NotNull AnActionEvent e) { myModel.addRow(new ModuleBasedConfigurationOptions.ClasspathModification(entry, true)); } }; })); JBPopupFactory.getInstance().createActionGroupPopup(null, actionGroup, e.getDataContext(), JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, true).showInBestPositionFor(e.getDataContext()); }