boolean (PsiClass psiClass, ProblemSink builder) { Collection<PsiMethod> psiMethods = PsiClassUtil.collectClassConstructorIntern(psiClass); if (!psiMethods.isEmpty()) { builder.addErrorMessage("inspection.message.utility.classes.cannot.have.declared.constructors"); return false; } return true; }