void (@Nullable TreeUI ui) { if (ui instanceof BasicTreeUI basic) { if (null == getField(BasicTreeUI.class, ui, JTree.class, "tree")) { LOG.warn(new IllegalStateException("tree is not properly initialized yet")); return; } EdtInvocationManager.invokeLaterIfNeeded(() -> basic.setLeftChildIndent(basic.getLeftChildIndent())); } }