void (HierarchicalMethodSignature signature, PsiMethod method, Map<MethodSignature, PsiMethod> map) { final PsiMethod other = map.get(signature); if (other == null || preferLeftForImplement(method, other)) { map.put(signature, method); } }