public static boolean skipReference(PsiElement member, Map<GroovyFile, String> aliases, PsiElement element) {
    final PsiFile containingFile = element.getContainingFile();
    if (containingFile instanceof GroovyFile && !Strings.areSameInstance(findAliasedName(aliases, ((GroovyFile)containingFile), member), EMPTY_ALIAS)) {
      if (PsiTreeUtil.getParentOfType(element, GrImportStatement.class, true) != null) return false;
      return true;
    }
    return false;
  }
public static boolean skipReference(PsiElement member, Map<GroovyFile, String> aliases, PsiElement element)