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