private boolean isDocumentConsistentWithPsi(int fileLength, FileASTNode fileElement, int nodeLength) {
    if (nodeLength != fileLength) return false;

    if (ApplicationManager.getApplication().isUnitTestMode() && !ApplicationManagerEx.isInStressTest()) {
      return fileElement.getPsi().textMatches(myContent.getText());
    }

    return true;
  }
private boolean isDocumentConsistentWithPsi(int fileLength, FileASTNode fileElement, int nodeLength)