@Override
  public void filesDeleted(@NotNull FileDeletedEvent event) {
    if (reportStateUnavailable()) {
      return;
    }

    for (String path : event.getFilePaths()) {
      File file = new File(FileUtilRt.toSystemDependentName(path));
      Collection<BuildRootDescriptor> collection = myBuildRootIndex.findAllParentDescriptors(file, myContext);
      for (BuildRootDescriptor buildRootDesc : collection) {
        BuildTarget<?> target = buildRootDesc.getTarget();
        String key = target.getTargetType().getTypeId() + target.getId();
        myChangedBuildTargets.put(key, target);
      }
    }
  }
@Override
  public void filesDeleted(@NotNull FileDeletedEvent event)