GlobalSearchScope () { final PsiFile containingFile = getContainingFile(); final GlobalSearchScope elementScope = super.getResolveScope(); return GrFileIndexUtil.isGroovySourceFile(containingFile) ? elementScope : GlobalSearchScope.fileScope(containingFile).union(elementScope); }