for (Map.Entry<Symbol, JCDiagnostic> _entry : candidatesMap.entrySet()) {
Symbol sym = _entry.getKey();
JCDiagnostic detailDiag = diags.fragment("inapplicable.method",
Kinds.kindName(sym),
sym.location(site, types),
sym.asMemberOf(site, types),
_entry.getValue());
details = details.prepend(detailDiag);
}
//typically members are visited in reverse order (see Scope)
//so we need to reverse the candidate list so that candidates