docs: public static RedisInstance parse(List<?> roleOutput) {
          LettuceAssert.isTrue(roleOutput != null && !roleOutput.isEmpty(), "Empty role output");
          LettuceAssert.isTrue(roleOutput.get(0) instanceof String && ROLE_MAPPING.containsKey(roleOutput.get(0)),
                  "First role element must be a string (any of " + ROLE_MAPPING.keySet() + ")");
  
          RedisInstance.Role role = ROLE_MAPPING.get(roleOutput.get(0));
  
          switch (role) {
              case MASTER:
                  return parseMaster(roleOutput);
  
              case SLAVE:
                  return parseReplica(roleOutput);
  
              case SENTINEL:
                  return parseSentinel(roleOutput);
          }
  
          return null;
  
      }