code: protected static List<String> formatMessageParameters(Object[] parameters) {
          List<String> arguments = new ArrayList<>(parameters.length);
          for (Object argument : parameters) {
              arguments.add((argument != null) ? argument.toString() : null);
          }
          return arguments;
      }
docs: Extracts message parameters into a List of Strings.
  <p>
  null parameters are kept as null.
  
  @param parameters parameters provided to the logging system.
  @return the parameters formatted as Strings in a List.