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