Comment (final Element element) { return new Comment() { @Override public String getText() { return element.getChildTextTrim("s"); } @Nullable @Override public String getAuthor() { return element.getChildTextTrim("sPerson"); } @Override public @NotNull Date getDate() { return parseDate(element.getChildTextTrim("dt")); } }; }