void (NodeRenderer renderer, boolean state) { boolean oldValue = renderer.isEnabled(); if (oldValue != state) { atDebuggerTearDown(() -> renderer.setEnabled(oldValue)); renderer.setEnabled(state); } }