@Override
  public void inlineUsage(@NotNull UsageInfo usage, @NotNull PsiElement referenced) {
    PsiElement element=usage.getElement();

    if (!(element instanceof GrExpression && element.getParent() instanceof GrCallExpression call)) return;

    final Editor editor = getCurrentEditorIfApplicable(element);

    RangeMarker marker = inlineReferenceImpl(call, myMethod, isOnExpressionOrReturnPlace(call), GroovyInlineMethodUtil.isTailMethodCall(call), editor);

    // highlight replaced result
    if (marker != null) {
      Project project = referenced.getProject();
      TextRange range = marker.getTextRange();
      GroovyRefactoringUtil.highlightOccurrencesByRanges(project, editor, new TextRange[]{range});

      WindowManager.getInstance().getStatusBar(project).setInfo(GroovyRefactoringBundle.message("press.escape.to.remove.the.highlighting"));
      if (editor != null) {
        editor.getCaretModel().moveToOffset(marker.getEndOffset());
      }
    }
  }
@Override
  public void inlineUsage(@NotNull UsageInfo usage, @NotNull PsiElement referenced)