private static boolean isIntentionalPrivateConstructor(@NotNull PsiMethod method, PsiClass containingClass) {
    return method.isConstructor() &&
           containingClass != null &&
           containingClass.getConstructors().length == 1;
  }
private static boolean isIntentionalPrivateConstructor(@NotNull PsiMethod method, PsiClass containingClass)