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