int () { if (!myColorManager.hasMultiplePaths()) { return 0; } if (!isShowRootNames()) { return JBUIScale.scale(ExperimentalUI.isNewUI() ? NEW_UI_ROOT_INDICATOR_WIDTH : ROOT_INDICATOR_WIDTH); } Font tableFont = VcsLogGraphTable.getTableFont(); int textWidth = 0; for (FilePath file : myColorManager.getPaths()) { textWidth = Math.max(getFontMetrics(tableFont).stringWidth(file.getName() + " "), textWidth); } Insets componentInsets = getRootNameInsets(); int insets = componentInsets.left + componentInsets.right; return Math.min(textWidth + insets, JBUIScale.scale(ROOT_NAME_MAX_WIDTH)); }