@Nullable
  @Contract("null -> null")
  public static String resolvedClassName(@Nullable PsiType type) {
    final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(type);
    return aClass == null ? null : aClass.getQualifiedName();
  }
@Nullable
  @Contract("null -> null")
  public static String resolvedClassName(@Nullable PsiType type)