void (@NotNull PsiClass inheritor, @NotNull PsiClass anInterface) { for (Iterator<PsiMethod> methodIterator = myRemainingMethods.iterator(); methodIterator.hasNext(); ) { ProgressManager.checkCanceled(); PsiMethod method = methodIterator.next(); SiblingInfo info = findSibling(inheritor, anInterface, method); if (info != null) { Map<PsiMethod, SiblingInfo> result; if ((result = myResult) == null) { myResult = result = new HashMap<>(); } result.put(method, info); methodIterator.remove(); } } }