int (PsiClass aClass) { final PsiMethod[] constructors = aClass.getConstructors(); if (!ignoreDeprecatedConstructors) { return constructors.length; } int count = 0; for (PsiMethod constructor : constructors) { if (!constructor.isDeprecated()) { count++; } } return count; }