private static boolean hasNonPrivateConstructor(PsiClass psiClass) {
    PsiMethod[] constructors = psiClass.getConstructors();
    if (constructors.length > 0) {
      for (PsiMethod constructor : constructors) {
        if (!constructor.getModifierList().hasModifierProperty(PsiModifier.PRIVATE)) {
          return true;
        }
      }
      return false;
    }
    return true;
  }
private static boolean hasNonPrivateConstructor(PsiClass psiClass)