private static @NotNull CharSequence readPemEntryText(BufferedReader reader, String firstLine) throws IOException {
    StringBuilder builder = new StringBuilder();
    if (firstLine != null) builder.append(firstLine).append('\n');
    while (true) {
      String tmp = reader.readLine();
      if (tmp.startsWith(OTHER_END_MARKER)) {
        if (firstLine != null) builder.append(tmp).append('\n');
        break;
      }
      builder.append(tmp);
      if (firstLine != null) builder.append('\n');
    }
    return builder;
  }
private static @NotNull CharSequence readPemEntryText(BufferedReader reader, String firstLine)