protected function buildInlineInfoDictionary(DifferentialInlineComment $inline, DifferentialChangeset $changeset = null)
 {
     $file_path = null;
     $diff_id = null;
     if ($changeset) {
         $file_path = $inline->getIsNewFile() ? $changeset->getFilename() : $changeset->getOldFile();
         $diff_id = $changeset->getDiffID();
     }
     return array('id' => $inline->getID(), 'authorPHID' => $inline->getAuthorPHID(), 'filePath' => $file_path, 'isNewFile' => $inline->getIsNewFile(), 'lineNumber' => $inline->getLineNumber(), 'lineLength' => $inline->getLineLength(), 'diffID' => $diff_id, 'content' => $inline->getContent());
 }
 /**
  * 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;
 }