ModuleCompileScope (@NotNull Project project, @NotNull Collection<? extends Artifact> artifacts) { final Set<Module> modules = ArtifactUtil.getModulesIncludedInArtifacts(artifacts, project); return new ModuleCompileScope(project, modules.toArray(Module.EMPTY_ARRAY), true); }