public static @NotNull String getPrefix(@NotNull String text) {
    int idx = text.indexOf(" in ");
    if (idx == -1) {
      idx = text.indexOf(" of ");
    }

    return idx == -1 ? text : text.substring(0, idx);
  }
public static @NotNull String getPrefix(@NotNull String text)