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