private static @NotNull Map<DuplicateNode, Match> findSelectedDuplicates(@NotNull ExtractMethodProcessor processor,
                                                                           @NotNull List<? extends DuplicateNode> selectedNodes) {
    Set<TextRange> textRanges = ContainerUtil.map2SetNotNull(selectedNodes, FragmentNode::getTextRange);
    processor.previewRefactoring(textRanges);
    List<Match> duplicates = processor.getAnyDuplicates();
    return filterSelectedDuplicates(selectedNodes, duplicates);
  }
private static @NotNull Map<DuplicateNode, Match> findSelectedDuplicates(@NotNull ExtractMethodProcessor processor,
                                                                           @NotNull List<? extends DuplicateNode> selectedNodes)