code: @Override
      public void visit(@Nonnull SWRLRule rule) {
          for (SWRLAtom atom : rule.getBody()) {
              atom.accept(this);
          }
          for (SWRLAtom atom : rule.getHead()) {
              atom.accept(this);
          }
          processAxiomAnnotations(rule);
      }
docs: SWRL Object Visitor