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