private void fileDeleted(@NotNull VFileDeleteEvent event) {
    VirtualFile virtualFile = event.getFile();
    Document doc = getCachedDocument(virtualFile);
    if (doc != null) {
      myTrailingSpacesStripper.documentDeleted(doc);
      unbindFileFromDocument(virtualFile, doc);
    }
  }
private void fileDeleted(@NotNull VFileDeleteEvent event)