PsiExpression[] (ExpressionOccurrenceManager manager) { return switch (myChoice) { case NO -> new PsiExpression[]{manager.getMainOccurence()}; case NO_WRITE -> StreamEx.of(manager.getOccurrences()).filter(expr -> !PsiUtil.isAccessedForWriting(expr)).toArray(PsiExpression.EMPTY_ARRAY); case ALL -> manager.getOccurrences(); }; }