default @Nullable PsiType getDeclaredType() {
    GrTypeElement typeElement = getTypeElementGroovy();
    return typeElement != null ? typeElement.getType() : null;
  }
default @Nullable PsiType getDeclaredType()