code: @Override
      public void visitClassContext(ClassContext classContext) {
          try {
              queryLocations = new ArrayList<>();
              loops = new ArrayList<>();
              super.visitClassContext(classContext);
          } finally {
              queryLocations = null;
              loops = null;
          }
      }
docs: implements the visitor to create and clear the query locations and loops collections
  
  @param classContext
  the context object for the currently parsed java class