void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(false); Runnable rerunRunnable = importSpec instanceof ImportSpecImpl ? ((ImportSpecImpl)importSpec).getRerunAction() : null; if (rerunRunnable == null) { refreshProject(externalProjectPath, importSpec); } else { rerunRunnable.run(); } }