void (@NotNull BooleanSupplier isUpToDate) { List<RunContentDescriptor> autoTestDescriptors = RunContentManager.getInstance(myProject).getAllDescriptors().stream() .filter(this::isAutoTestEnabled).toList(); for (RunContentDescriptor descriptor : autoTestDescriptors) { restartAutoTest(descriptor, isUpToDate); } if (autoTestDescriptors.isEmpty()) { deactivateWatcher(); } }