@Override
 public void buildStringForMagic(StringBuilder builder, IMagic magic, Object details) {
   if (magic instanceof ICharm && MartialArtsUtilities.isMartialArtsCharm((ICharm) magic)) {
     MartialArtsLevel level = MartialArtsUtilities.getLevel((ICharm) magic);
     builder.append(resources.getString("CharmTreeView.ToolTip.MartialArtsLevel")); // $NON-NLS-1$
     builder.append(TooltipBuilder.ColonSpace);
     builder.append(resources.getString(level.getId()));
     builder.append(TooltipBuilder.HtmlLineBreak);
   }
 }
 private int getCharmCosts(boolean favored, MartialArtsLevel martialArtsLevel) {
   if (martialArtsLevel != null
       && (standardLevel.compareTo(martialArtsLevel) < 0
           || martialArtsLevel == MartialArtsLevel.Sidereal)) {
     return favored ? favoredHighLevelMartialArtsCharmCost : generalHighLevelMartialArtsCharmCost;
   }
   return favored ? favoredCharmCost : generalCharmCost;
 }