private static @NotNull Pair<String, Integer> getCleanStringAndDepth(@NotNull String name, @NotNull String separator) {
    int result = 0;
    while (!separator.isEmpty() && name.startsWith(separator)) {
      result++;
      name = name.substring(separator.length());
    }
    return Pair.create(name, result);
  }
private static @NotNull Pair<String, Integer> getCleanStringAndDepth(@NotNull String name, @NotNull String separator)