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