@Override
  public PsiElement @Nullable [] getSymbolTypeDeclarations(@NotNull final PsiElement targetElement) {
    PsiType type;
    if (targetElement instanceof GrVariable){
      type = ((GrVariable)targetElement).getTypeGroovy();
    }
    else if (targetElement instanceof GrMethod){
      type = ((GrMethod)targetElement).getInferredReturnType();
    }
    else {
      return null;
    }
    if (type == null) return null;
    PsiClass psiClass = PsiUtil.resolveClassInType(type);
    return psiClass == null ? null : new PsiElement[] {psiClass};
  }
@Override
  public PsiElement @Nullable [] getSymbolTypeDeclarations(@NotNull final PsiElement targetElement)