boolean (PsiClass checkedClass) { final PsiMethod[] constructors = checkedClass.getConstructors(); if (constructors.length == 0) return true; // default constructor for (PsiMethod constructor : constructors) { if (constructor.getParameterList().isEmpty()) { return true; } } return false; }