Optimize short var declaration in MethodOrTypeNameResolver