it may be more efficient to have a Set<DotName> scopeTypes and do scopeTypes.contains(name) than to covert every DotName into its String form by calling toString()