code: public void setEnabled(boolean enabled) {
          final ExtensionList<NodeProvisioner.Strategy> strategies = lookup(NodeProvisioner.Strategy.class);
          DockerProvisioningStrategy strategy = strategies.get(DockerProvisioningStrategy.class);
  
          if (isNull(strategy)) {
              LOG.debug("YAD strategy was null, creating new.");
              strategy = new DockerProvisioningStrategy();
          } else {
              LOG.debug("Removing YAD strategy.");
              strategies.remove(strategy);
          }
  
          LOG.debug("Inserting YAD strategy at position 0");
          strategies.add(0, strategy);
      }
docs: For groovy.