import com.github.sommeri.less4j.utils.PrintUtils;
public class ConversionUtils {
public static SelectorCombinator createSelectorCombinator(HiddenTokenAwareTree token) {
CombinatorType combinator = safeToSelectorCombinator(token);
if (combinator == null)
throw new IllegalStateException("Unknown: " + token.getType() + " " + PrintUtils.toName(token.getType()));
String symbol = extractSymbol(token, combinator);
return new SelectorCombinator(token, combinator, symbol);