List<ExecutionTarget> (@NotNull Project project, @Nullable RunConfiguration configuration) { List<ExecutionTarget> result = getInstance(project).getTargetsFor(configuration); if (result.size() == 1 && DefaultExecutionTarget.INSTANCE.equals(result.get(0))) { return Collections.emptyList(); } result = ContainerUtil.filter(result, target -> !target.isExternallyManaged()); if (result.size() == 1 && DefaultExecutionTarget.INSTANCE.equals(result.get(0))) { return Collections.emptyList(); } return result; }