@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiJavaToken element) {
    final PsiPolyadicExpression expression = SplitConditionUtil.findCondition(element);
    if (expression == null) return null;

    PsiElement parent = PsiUtil.skipParenthesizedExprUp(expression.getParent());
    if (!(parent instanceof PsiIfStatement ifStatement)) return null;

    if (!PsiTreeUtil.isAncestor(ifStatement.getCondition(), expression, false)) return null;
    if (ifStatement.getThenBranch() == null) return null;
    return Presentation.of(JavaBundle.message("intention.split.if.text"));
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiJavaToken element)