void (@NotNull AnActionEvent e) { String displayName = myInitTitle; final Project project = e.getProject(); if (project != null) { final String name = getConsoleDisplayName(project); if (!displayName.equals(name)) { displayName = name; } } myConsoleRunner.stopAndRerunConsole(true, PyBundle.message("console.restarting.console"), displayName); }