public void setFileContentsAreIdentical() {
    if (myTopMessageDiffPanel == null
        || myTopMessageDiffPanel instanceof FileContentsAreIdenticalDiffPanel) {
      LineSeparator sep1 =
          myData.getContent1() == null ? null : myData.getContent1().getLineSeparator();
      LineSeparator sep2 =
          myData.getContent2() == null ? null : myData.getContent2().getLineSeparator();

      if (LineSeparator.knownAndDifferent(sep1, sep2)) {
        myTopMessageDiffPanel = new LineSeparatorsOnlyDiffPanel();
      } else {
        myTopMessageDiffPanel = new FileContentsAreIdenticalDiffPanel();
      }
      myPanel.insertTopComponent(myTopMessageDiffPanel);
    }
  }
 public void setPatchAppliedApproximately() {
   if (!(myTopMessageDiffPanel instanceof CanNotCalculateDiffPanel)) {
     myTopMessageDiffPanel = new DiffIsApproximate();
     myPanel.insertTopComponent(myTopMessageDiffPanel);
   }
 }
 public void setTooBigFileErrorContents() {
   setLineBlocks(LineBlocks.EMPTY);
   myTopMessageDiffPanel = new CanNotCalculateDiffPanel();
   myPanel.insertTopComponent(myTopMessageDiffPanel);
 }