code: public static RuleProviderRegistry instance(GraphRewrite event)
      {
          RuleProviderRegistry instance = (RuleProviderRegistry) event.getRewriteContext().get(RuleProviderRegistry.class);
          return instance;
      }
docs: Gets the current instance of {@link RuleProviderRegistry}.