boolean (@NotNull String name, @NotNull String text) { if (!"a".equals(name)) { return true; } Matcher matcher = HREF_PATTERN.matcher(text); if (matcher.find()) { myHref = matcher.group(1); } return true; }