* element that can be traced back to a protocol buffer element.
*/
public CppToProtobufMapping createMappingFrom(IBinding binding) {
IBinding bindingToUse = binding;
if (binding instanceof ProblemBinding) {
ProblemBinding problemBinding = (ProblemBinding) binding;
IBinding[] candidates = problemBinding.getCandidateBindings();
if (candidates != null && candidates.length == 1) {
bindingToUse = candidates[0];
}
}
IBindingMappingStrategy<?> strategy = strategies.get(bindingToUse.getClass());