public void markAsUnchanged(DefaultInputFile file) {
    if (isFeatureActive()) {
      if (file.status() != InputFile.Status.SAME) {
        LOG.error("File '{}' was marked as unchanged but its status is {}", file.getProjectRelativePath(), file.status());
      } else {
        LOG.debug("File '{}' marked as unchanged", file.getProjectRelativePath());
        file.setMarkedAsUnchanged(true);
      }
    }
  }
@Test
  public void dont_mark_file_if_sensor_is_not_enabled() {
    executingSensorContext.setSensorExecuting(new SensorId("cpp", "other"));
    UnchangedFilesHandler handler = new UnchangedFilesHandler(enabledConfig, defaultBranchConfig, executingSensorContext);

    handler.markAsUnchanged(file);
    verifyNoInteractions(file);
  }