int (PsiMethod[] methods) { final CyclomaticComplexityVisitor visitor = new CyclomaticComplexityVisitor(); int complexity = 0; for (final PsiMethod method : methods) { visitor.reset(); method.accept(visitor); complexity += visitor.getComplexity(); } return complexity; }