void (@NotNull List<PatternWrapper> elements) { final List<PsiPattern> newPatterns = ContainerUtil.map(elements, element -> element.pattern()); final List<String> newElementNames = ContainerUtil.map(elements, PatternWrapper::getName); resolveVariableVsFieldsConflicts(newPatterns, newElementNames, myParent, myChangeInfo.toRemoveParm(), PsiTreeUtil.getParentOfType(myParent, PsiStatement.class), DeconstructionList.INSTANCE); }