public static boolean hasDefaultConstructor(final @NotNull PsiClass psiClass) {
    final PsiMethod[] constructors = psiClass.getConstructors();
    for (PsiMethod method : constructors) {
      if (method.getParameterList().isEmpty()) return true;
    }
    return constructors.length == 0;
  }
public static boolean hasDefaultConstructor(final @NotNull PsiClass psiClass)