@Override
    public void after(@NotNull List<? extends @NotNull VFileEvent> events) {
      Set<VirtualFile> toRefresh = new HashSet<>();
      for (VFileEvent event : events) {
        if (event instanceof VFileContentChangeEvent ||
            event instanceof VFilePropertyChangeEvent) {
          VirtualFile file = Objects.requireNonNull(event.getFile());
          if (myFiles.contains(file)) {
            toRefresh.add(file);
          }
        }
      }

      for (VirtualFile file : toRefresh) {
        onFileChange(file);
      }
    }
@Override
    public void after(@NotNull List<? extends @NotNull VFileEvent> events)