void (@NotNull TreePath expected, @NotNull TreePath actual) { assertEquals("expected path should be equal to the actual path", expected, actual); // do no validate root node, because it is not updated in Swing's viewable row list if (expected.getParentPath() == null && actual.getParentPath() == null) return; assertComponent(expected.getLastPathComponent(), actual.getLastPathComponent()); assertTreePath(expected.getParentPath(), actual.getParentPath()); }