@Nullable
 @Override
 protected String getTypeText(@NotNull VcsRef item) {
   if (!myColorManager.isMultipleRoots()) return null;
   String text = myCachedRootNames.get(item.getRoot());
   if (text == null) {
     return VcsImplUtil.getShortVcsRootName(myProject, item.getRoot());
   }
   return text;
 }
 @Override
 public LookupElementBuilder createLookupBuilder(@NotNull VcsRef item) {
   LookupElementBuilder lookupBuilder = super.createLookupBuilder(item);
   if (myColorManager.isMultipleRoots()) {
     lookupBuilder =
         lookupBuilder.withTypeText(
             getTypeText(item),
             new ColorIcon(
                 15, VcsLogGraphTable.getRootBackgroundColor(item.getRoot(), myColorManager)),
             true);
   }
   return lookupBuilder;
 }
 private void updateDetailsBorder(@Nullable VcsFullCommitDetails data) {
   if (data == null || !myColorManager.isMultipleRoots()) {
     myMainContentPanel.setBorder(BorderFactory.createEmptyBorder());
   } else {
     Color color = VcsLogGraphTable.getRootBackgroundColor(data.getRoot(), myColorManager);
     myMainContentPanel.setBorder(
         new CompoundBorder(
             new MatteBorder(0, VcsLogGraphTable.ROOT_INDICATOR_COLORED_WIDTH, 0, 0, color),
             new MatteBorder(
                 0,
                 VcsLogGraphTable.ROOT_INDICATOR_WHITE_WIDTH,
                 0,
                 0,
                 new JBColor(
                     new NotNullProducer<Color>() {
                       @NotNull
                       @Override
                       public Color produce() {
                         return getDetailsBackground();
                       }
                     }))));
   }
 }
 public static JBColor getRootBackgroundColor(
     @NotNull VirtualFile root, @NotNull VcsLogColorManager colorManager) {
   return VcsLogColorManagerImpl.getBackgroundColor(colorManager.getRootColor(root));
 }
 @Nullable
 @Override
 protected String getTailText(@NotNull VcsRef item) {
   if (!myColorManager.isMultipleRoots()) return null;
   return "";
 }