List<TargetTypeBuildScope> (@NotNull CompileScope baseScope, @NotNull Project project, boolean forceBuild) { List<String> pluginArtifactTargetIds = new ArrayList<>(); for (Module module : baseScope.getAffectedModules()) { if (PluginModuleType.isOfType(module)) { pluginArtifactTargetIds.add(module.getName()+":plugin"); //NON-NLS } } if (pluginArtifactTargetIds.isEmpty()) { return Collections.emptyList(); } return Collections.singletonList(CmdlineProtoUtil.createTargetsScope(ArtifactBuildTargetType.INSTANCE.getTypeId(), pluginArtifactTargetIds, forceBuild)); }