@Contract("null, _ -> false")
  public static boolean classNameEquals(@Nullable PsiType type, @NotNull String qualifiedClassName) {
    if (!(type instanceof PsiClassType)) return false;
    PsiClassType classType = (PsiClassType)type;
    String className = classType.getClassName();
    if (className == null || !qualifiedClassName.endsWith(className)) return false;
    PsiClass psiClass = classType.resolve();
    if (psiClass == null) return false;
    return qualifiedClassName.equals(psiClass.getQualifiedName());
  }
@Contract("null, _ -> false")
  public static boolean classNameEquals(@Nullable PsiType type, @NotNull String qualifiedClassName)