@Override
  public boolean isFileModified(@NotNull VirtualFile file) {
    Document doc = getCachedDocument(file);
    return doc != null && isDocumentUnsaved(doc) && doc.getModificationStamp() != file.getModificationStamp();
  }
@Override
  public boolean isFileModified(@NotNull VirtualFile file)