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