@Override
    public long getModificationStamp() {
      Document document = getCachedDocument();
      if (document == null) {
        return getVirtualFile().getModificationStamp();
      }
      return getLastCommittedStamp(document);
    }
@Override
    public long getModificationStamp()