@Override
  public void describe(SensorDescriptor descriptor) {
    descriptor.name("Mark As Unchanged Sensor")
      .onlyOnLanguages(Xoo.KEY, Xoo2.KEY)
      .onlyWhenConfiguration(c -> c.getBoolean(ACTIVATE_MARK_AS_UNCHANGED).orElse(false))
      .processesFilesIndependently();
  }
@Test
  public void only_runs_if_property_is_set() {
    DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor();
    sensor.describe(descriptor);
    Configuration configWithProperty = new MapSettings().setProperty("sonar.markAsUnchanged", "true").asConfig();
    Configuration configWithoutProperty = new MapSettings().asConfig();

    assertThat(descriptor.configurationPredicate().test(configWithoutProperty)).isFalse();
    assertThat(descriptor.configurationPredicate().test(configWithProperty)).isTrue();
  }