private static @NotNull MultiMap<@NotNull String, @NotNull String> parseJvmArgs(@NotNull List<@NotNull String> args) {
    MultiMap<String, String> result = MultiMap.createLinkedSet();
    String lastKey = null;
    for (String jvmArg : args) {
      if (jvmArg.startsWith("-")) {
        result.putValue(jvmArg, "");
        lastKey = jvmArg;
      }
      else {
        if (lastKey != null) {
          result.putValue(lastKey, jvmArg);
          lastKey = null;
        }
        else {
          result.putValue(jvmArg, "");
        }
      }
    }
    return result;
  }
private static @NotNull MultiMap<@NotNull String, @NotNull String> parseJvmArgs(@NotNull List<@NotNull String> args)