private boolean isValidPage(Page page) throws WikiTitleParsingException {
  return !page.isDisambiguation() && !page.isRedirect() && (inludeDiscussions || (!inludeDiscussions && !page.isDiscussion()));
}

private boolean isValidPage ( Page page ) throws WikiTitleParsingException { return ! page . isDisambiguation ( ) && ! page . isRedirect ( ) && ( inludeDiscussions || ( ! inludeDiscussions && ! page . isDiscussion ( ) ) ) ; }
only accept article pages and ( if includediscussions = true ) talk pages
