Avoid identifier resolution for types which won't be handled.