int (PsiClass aClass) { final PsiMethod[] methods = aClass.getMethods(); int totalCount = 0; for (final PsiMethod method : methods) { if (method.isConstructor()) { continue; } if (ignoreGettersAndSetters) { if (PropertyUtil.isSimpleGetter(method) || PropertyUtil.isSimpleSetter(method)) { continue; } } if (ignoreOverridingMethods) { if (MethodUtils.hasSuper(method)) { continue; } } totalCount++; } return totalCount; }