private @Nullable PsiElement findAnchor() {
        PsiExpression[] occurrences = myAttributeCalls.toArray(PsiExpression.EMPTY_ARRAY);
        PsiElement anchor = CommonJavaRefactoringUtil.getAnchorElementForMultipleExpressions(occurrences, myScope);
        if (anchor == null) return null;
        PsiLambdaExpression lambda = ObjectUtils.tryCast(PsiUtil.skipParenthesizedExprUp(anchor.getParent()), PsiLambdaExpression.class);
        if (lambda == null) return anchor;
        PsiCodeBlock codeBlock = CommonJavaRefactoringUtil.expandExpressionLambdaToCodeBlock(lambda);
        // attribute calls were inside lambda, need to recalculate them
        myAttributeCalls = findAttributeCalls(myFileVariable, myScope);
        return ControlFlowUtils.getOnlyStatementInBlock(codeBlock);
      }
private @Nullable PsiElement findAnchor()