private boolean checkRealm(@NotNull String line) {
    Matcher matcher = AUTHENTICATION_REALM_MESSAGE.matcher(line);

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

    return matcher.matches();
  }
private boolean checkRealm(@NotNull String line)