private void clearInvalidFiles() {
    myWolfTheProblemSolver.processProblemFiles(file -> {
      invalidateFileQueue.queue(Update.create(file, () -> {
        boolean toRemove = ReadAction.compute(() -> !myProject.isDisposed() && (!file.isValid() || !myWolfTheProblemSolver.isToBeHighlighted(file)));
        if (toRemove) {
          myWolfTheProblemSolver.doRemove(file);
        }
      }));
      return true;
    });
  }
private void clearInvalidFiles()