code: @SuppressWarnings("unchecked")
      public static <K extends Object, V extends Object> Map<K, V> createMap(
              Object... keysAndValues) {
          if (keysAndValues == null) {
              return null;
          }
          if (keysAndValues.length % 2 != 0) {
              throw new IllegalArgumentException("Number of arguments must be even!");
          }
          Map<K, V> result = new LinkedHashMap<>();
          for (int i = 0, n = keysAndValues.length / 2; i < n; i++) {
              result.put((K) keysAndValues[i * 2], (V) keysAndValues[i * 2 + 1]);
          }
          return result;
      }
docs: Create a {@link Map} from flat array of objects.
  
  @param keysAndValues
  @return