boolean (PsiClass aClass) { final PsiMethod[] constructors = aClass.getConstructors(); for (final PsiMethod constructor : constructors) { if (constructor.hasModifierProperty(PsiModifier.PUBLIC)) { return true; } } return false; }