@Override
    public void visitMethod(@NotNull GrMethod grMethod) {
      super.visitMethod(grMethod);
      final NegationCountVisitor visitor = new NegationCountVisitor();
      final GrOpenBlock body = grMethod.getBlock();
      if (body == null) {
        return;
      }
      body.accept(visitor);
      final int numNegations = visitor.getNegationCount();
      if (numNegations <= 3) {
        return;
      }
      registerMethodError(grMethod, numNegations);
    }
@Override
    public void visitMethod(@NotNull GrMethod grMethod)