code: public void unregisterMonitor(Monitor monitor) {
          if (monitors != null) {
              monitors.remove(monitor);
              if (monitors.isEmpty()) {
                  monitors = null;
              }
          }
      }
docs: Register {@link Monitor} which will be called the graph is about to inject or release an object
  
  @param monitor The monitor