docs: public static QueryOptimizer newOptimizer(HazelcastProperties properties) {
          HazelcastProperty property = GroupProperty.QUERY_OPTIMIZER_TYPE;
          String string = properties.getString(property);
          Type type;
          try {
              type = Type.valueOf(string);
          } catch (IllegalArgumentException e) {
              throw onInvalidOptimizerType(string);
          }
          switch (type) {
              case RULES:
                  return new RuleBasedQueryOptimizer();
              default:
                  return new EmptyOptimizer();
          }
      }