RepositoryTreeNode (@NotNull RepositoryTreeNode node) { RepositoryTreeNode result = null; if (!node.isDisposed()) { result = node.getNodeWithSamePathUnderModelRoot(); } return result == null || result.isDisposed() ? null : result; }