@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiKeyword keyword) {
    if (keyword.getTokenType() == JavaTokenType.ELSE_KEYWORD && keyword.getParent() instanceof PsiIfStatement ifStatement) {
      PsiStatement elseBranch = ifStatement.getElseBranch();
      if (elseBranch != null) {
        PsiStatement thenBranch = ifStatement.getThenBranch();
        boolean thenCompletesNormally = ControlFlowUtils.statementMayCompleteNormally(thenBranch);
        boolean elseCompletesNormally = ControlFlowUtils.statementMayCompleteNormally(elseBranch);
        if (thenCompletesNormally && (elseCompletesNormally || !nextStatementMayBecomeUnreachable(ifStatement))) {
          return Presentation.of(JavaBundle.message("intention.unwrap.else.branch.changes.semantics"));
        }
      }
    }
    return null;
  }
@Override
  protected @Nullable Presentation getPresentation(@NotNull ActionContext context, @NotNull PsiKeyword keyword)