GlobalSearchScope (@NotNull GroovyFile file, @NotNull GlobalSearchScope baseScope) { if (!FileUtilRt.extensionEquals(file.getName(), GradleConstants.EXTENSION)) return baseScope; final Module module = ModuleUtilCore.findModuleForPsiElement(file); return patchResolveScopeInner(module, baseScope); }