List<TreeNode> (final @NotNull TreeNode node) { //ThreadingAssertions.assertEventDispatchThread(); int size = node.getChildCount(); ArrayList<TreeNode> result = new ArrayList<>(size); for(int i = 0; i < size; i++){ TreeNode child = node.getChildAt(i); LOG.assertTrue(child != null); result.add(child); } return result; }