void (@NotNull ModelTest test, @NotNull TreeNode expected, @NotNull Runnable task) { Object actual = test.tree.getModel().getRoot(); assert expected.equals(actual) : "expected node should be equal to the tree root"; assert expected == actual : "expected node should be the same"; task.run(); }