if (name.equals(m.getName()) &&
m.getParameterTypes().length == params.size()) {
int score = 0;
for (int i = 0; i < m.getParameterTypes().length; i++) {
ConversionScore convScore = params.get(i).conversionScore(m.getParameterTypes()[
i]);
if (convScore == ConversionScore.nomatch)
continue;
score += convScore.getScore();
}
candidates.put(m, score);
}
}