public static @Nullable Color getColorFromElement(final PsiElement element) {
    if (!(element instanceof XmlToken)) return null;

    return ColorMap.getColor(element.getText());
  }
public static @Nullable Color getColorFromElement(final PsiElement element)