void (@NotNull GrMethod grMethod) { super.visitMethod(grMethod); final int limit = getLimit(); final CyclomaticComplexityVisitor visitor = new CyclomaticComplexityVisitor(); final GrOpenBlock body = grMethod.getBlock(); if (body == null) { return; } body.accept(visitor); final int complexity = visitor.getComplexity(); if (complexity <= limit) { return; } registerMethodError(grMethod, complexity, limit); }