520521522523524525526527528529530
Method chosenOne = matchMethods.get(0); matchMethods.remove(0); int methodCounter = 1; for (Method method : matchMethods) { int difference = comparator.compare(chosenOne, method); if (difference > 0) { chosenOne = method; methodCounter = 1; }