public static @NotNull @NlsSafe String getSubject(@NotNull @NlsSafe String fullMessage) {
    int separator = fullMessage.indexOf("\n\n");
    return separator > 0 ? fullMessage.substring(0, separator) : fullMessage;
  }
public static @NotNull @NlsSafe String getSubject(@NotNull @NlsSafe String fullMessage)