boolean (CompileScope scope) { if (scope instanceof CompositeScope) { for (CompileScope compileScope : ((CompositeScope)scope).getScopes()) { if (shouldFetchFiles(compileScope)) { return true; } } } return scope instanceof OneProjectItemCompileScope || scope instanceof FileSetCompileScope; }