Use instanceof in ParserCache::getKey to help IDEs