protected List<String> getItemsFromPage(WikiPage page) {
if (page instanceof WikitextPage) {
Symbol tree = ((WikitextPage) page).getSyntaxTree();
ParsingPage parsingPage = ((WikitextPage) page).getParsingPage();
return new Paths(new HtmlTranslator(new WikiSourcePage(page), parsingPage)).getPaths(tree);
}
return Collections.emptyList();
}