Couple<Integer> (@NotNull Property property, @NotNull Icon icon) { int nodeIndent = UIUtil.getTreeLeftChildIndent() + UIUtil.getTreeRightChildIndent(); int beforeIcon = nodeIndent * getDepth(property); int leftIconOffset = Math.max(0, UIUtil.getTreeLeftChildIndent() - (icon.getIconWidth() / 2)); beforeIcon += leftIconOffset; int afterIcon = Math.max(0, nodeIndent - leftIconOffset - icon.getIconWidth()); return Couple.of(beforeIcon, afterIcon); }