void (@NotNull PsiMethod method) { // note: no call to super if (method.getNameIdentifier() == null) { return; } final CyclomaticComplexityVisitor visitor = new CyclomaticComplexityVisitor(); method.accept(visitor); final int complexity = visitor.getComplexity(); if (complexity <= getLimit()) { return; } registerMethodError(method, Integer.valueOf(complexity)); }