void (@NotNull final VirtualFile vf, final TreeNodeState state, final boolean recursively) { assertNotNull(myFs.getNode(vf)); assertEquals(state, myCm.getState(myFs.getNode(vf))); // not deep, ok recursion if (recursively) { for (VirtualFile child : vf.getChildren()) { assertNodeState(child, state, true); } } }