void (@NotNull AnActionEvent e) { final DataContext context = e.getDataContext(); final Project project = MavenActionUtil.getProject(context); if (project == null) return; final MavenProjectsManager projectsManager = MavenActionUtil.getProjectsManager(context); if(projectsManager == null) return; MavenExplicitProfiles explicitProfiles = projectsManager.getExplicitProfiles(); MavenRunnerParameters params = new MavenRunnerParameters(true, myMavenProject.getDirectory(), myMavenProject.getFile().getName(), Collections.singletonList(myGoal), explicitProfiles.getEnabledProfiles(), explicitProfiles.getDisabledProfiles()); MavenRunConfigurationType.runConfiguration(project, params, null); }