GrStatement (@NotNull final GrIntroduceContext context, final boolean replaceAll) { return ReadAction.compute(() -> { PsiElement[] occurrences = replaceAll ? context.getOccurrences() : new GrExpression[]{context.getExpression()}; return getAnchor(occurrences, context.getScope()); }); }