int (@NotNull Control control, int depth, boolean leaf) { if (depth < 0) return -1; // do not paint row if (depth == 0) return 0; int left = getLeftIndent(); int offset = getLeafIndent(leaf); if (offset < 0) offset = left + control.getWidth() + getRightIndent(); return depth > 1 ? (depth - 1) * (left + JBUIScale.scale(2)) + offset : offset; }