private boolean checkPassword(@NotNull String line) {
    Matcher matcher = PASSWORD_PROMPT.matcher(line);

    if (matcher.matches()) {
      userName = matcher.group(1);
    }

    return matcher.matches() && handleAuthPrompt(false);
  }
private boolean checkPassword(@NotNull String line)