* Determines the {@code index}-th key/value/tag (depending on {@code type}) of the
* {@link org.openstreetmap.josm.gui.mappaint.mapcss.Selector.GeneralSelector}.
*/
static String determineArgument(Selector.GeneralSelector matchingSelector, int index, String type) {
try {
final Condition c = matchingSelector.getConditions().get(index);
final Tag tag = c instanceof Condition.KeyCondition
? ((Condition.KeyCondition) c).asTag()
: c instanceof Condition.SimpleKeyValueCondition
? ((Condition.SimpleKeyValueCondition) c).asTag()
: c instanceof Condition.KeyValueCondition