@NotNull
  private static List<SimpleMatch> collectDuplicates(@NotNull SimpleDuplicatesFinder finder,
                                                     @NotNull PsiElement originalScopeAnchor,
                                                     @NotNull PyFunction generatedMethod) {
    final List<PsiElement> scopes = collectScopes(originalScopeAnchor, generatedMethod);
    return ExtractMethodHelper.collectDuplicates(finder, scopes, generatedMethod);
  }
@NotNull
  private static List<SimpleMatch> collectDuplicates(@NotNull SimpleDuplicatesFinder finder,
                                                     @NotNull PsiElement originalScopeAnchor,
                                                     @NotNull PyFunction generatedMethod)