int (@NotNull JTree tree, int row) { if (LazyRowX.METHOD == null) return -1; // system error TreePath path = tree.getPathForRow(row); if (path == null) return -1; // path does not exist int depth = getNodeDepth(tree, path); if (depth < 0) return -1; // root is not visible try { return (Integer)LazyRowX.METHOD.invoke(tree.getUI(), row, depth); } catch (Exception exception) { LOG.error(exception); return -1; // unexpected } }