private static @NotNull ModCommand perform(ActionContext context) {
    PsiElement parent = context.findLeaf() instanceof PsiIdentifier id ? id.getParent() :
                        context.findLeafOnTheLeft() instanceof PsiIdentifier id ? id.getParent() :
                        null;
    final PsiReferenceExpression refExpr = ObjectUtils.tryCast(parent, PsiReferenceExpression.class);
    InlineMode mode;
    if (refExpr != null && PlatformUtils.isFleetBackend() && JavaRefactoringSettings.getInstance().INLINE_LOCAL_THIS) {
      // Conflicts mode is handled separately in Fleet, for now
      mode = InlineMode.INLINE_ONE;
    }
    else {
      mode = InlineMode.CHECK_CONFLICTS;
    }

    return doInline(context, (PsiVariable)Objects.requireNonNull(context.element()), refExpr, mode);
  }
private static @NotNull ModCommand perform(ActionContext context)