JavaSliceBuilder (@NotNull SliceUsage parent) { SliceValueFilter filter = parent.params.valueFilter; if (parent instanceof JavaSliceUsage javaParent) { return new JavaSliceBuilder(parent, javaParent.getSubstitutor(), javaParent.indexNesting, javaParent.syntheticField, filter); } return new JavaSliceBuilder(parent, PsiSubstitutor.EMPTY, 0, "", filter); }