docs: private String promptForText(ConsoleWrapper stdin, PrintStream stdout,
                                   String enterText, String reenterText,
                                   String readError, String entriesDidNotMatch) {
          String read1 = stdin.readMaskedText(getMessage(enterText) + " ");
          String read2 = stdin.readMaskedText(getMessage(reenterText) + " ");
          if (read1 == null && read2 == null) {
              throw new IllegalArgumentException("Unable to read either entry. Aborting prompt.");
          } else if (read1 == null || read2 == null) {
              stdout.println(getMessage(readError));
              return promptForText(stdin, stdout, enterText, reenterText, readError, entriesDidNotMatch);
          } else if (read1.equals(read2)) {
              return read1;
          } else {
              stdout.println(getMessage(entriesDidNotMatch));
              return promptForText(stdin, stdout, enterText, reenterText, readError, entriesDidNotMatch);
          }
      }