void (@NotNull GrMethod method) { super.visitMethod(method); final int limit = getLimit(); final StatementCountVisitor visitor = new StatementCountVisitor(); final GrOpenBlock block = method.getBlock(); if (block == null) return; block.accept(visitor); final int statementCount = visitor.getStatementCount(); if (statementCount <= limit) { return; } registerMethodError(method, statementCount, limit); }