void (@NotNull PsiVariable variable, @NotNull final Processor<? super SliceUsage> processor, @NotNull final JavaSliceBuilder builder) { if (builder.hasNesting()) { ReferencesSearch.search(variable).forEach(reference -> { PsiElement element = reference.getElement(); if (element instanceof PsiExpression expression && !element.getManager().areElementsEquivalent(element, builder.getParent().getElement())) { return addContainerItemModification(expression, processor, builder); } return true; }); } }