void (String taskName, ExternalSystemTaskActivator.Phase phase, Module module) { String projectPath = ExternalSystemApiUtil.getExternalProjectPath(module); ExternalSystemTaskActivator taskActivator = ExternalProjectsManagerImpl.getInstance(myProject).getTaskActivator(); taskActivator.addTask(new ExternalSystemTaskActivator.TaskActivationEntry(TEST_EXTERNAL_SYSTEM_ID, phase, projectPath, taskName)); }