TestFrameworkPropertyListener<Boolean> (TestFrameworkRunningModel model) { return new TestFrameworkPropertyListener<>() { @Override public void onChanged(Boolean value) { try { //todo reflection to avoid binary incompatibility with substeps plugin final AbstractTestTreeBuilderBase builder = (AbstractTestTreeBuilderBase)model.getClass().getMethod("getTreeBuilder").invoke(model); if (builder != null) { builder.setTestsComparator(model); } } catch (Exception e) { LOG.error(e); } } }; }