void (@NotNull AnActionEvent e) { // force move focus to IdeFrame IdeEventQueue.getInstance().getPopupManager().closeAllPopups(); Project project = e.getProject(); Path file = Path.of(myProjectPath).normalize(); if (!Files.exists(file)) { if (Messages.showDialog(project, IdeBundle .message("message.the.path.0.does.not.exist.maybe.on.remote", FileUtil.toSystemDependentName(myProjectPath)), IdeBundle.message("dialog.title.reopen.project"), new String[]{CommonBundle.getOkButtonText(), IdeBundle.message("button.remove.from.list")}, 0, Messages.getErrorIcon()) == 1) { myIsRemoved = true; RecentProjectsManager.getInstance().removePath(myProjectPath); } return; } OpenProjectTask options = OpenProjectTaskKt.OpenProjectTask(builder -> { builder.setProjectToClose(project); int modifiers = e.getModifiers(); builder.setForceOpenInNewFrame(BitUtil.isSet(modifiers, ActionEvent.CTRL_MASK) || BitUtil.isSet(modifiers, ActionEvent.SHIFT_MASK) || ActionPlaces.WELCOME_SCREEN.equals(e.getPlace()) || LightEdit.owns(project)); builder.setRunConfigurators(true); return Unit.INSTANCE; }); RecentProjectItem.Companion.openProjectAndLogRecent(file, options, myProjectGroup); }