CompileScope (final VirtualFile @NotNull [] files) { CompileScope[] scopes = new CompileScope[files.length]; for(int i = 0; i < files.length; i++){ scopes[i] = new OneProjectItemCompileScope(myProject, files[i]); } return new CompositeScope(scopes); }