/**
  * Determine if an inline comment will appear on the rendered diff,
  * taking into consideration which halves of which changesets will actually
  * be shown.
  *
  * @param DifferentialInlineComment Comment to test for visibility.
  * @return bool True if the comment is visible on the rendered diff.
  */
 private function isCommentVisibleOnRenderedDiff(DifferentialInlineComment $comment)
 {
     $changeset_id = $comment->getChangesetID();
     $is_new = $comment->getIsNewFile();
     if ($changeset_id == $this->rightSideChangesetID && $is_new == $this->rightSideAttachesToNewFile) {
         return true;
     }
     if ($changeset_id == $this->leftSideChangesetID && $is_new == $this->leftSideAttachesToNewFile) {
         return true;
     }
     return false;
 }