@Override
  public @Nullable Presentation getPresentation(@NotNull ActionContext context) {
    if (myCatchSection.isValid()
        && BaseIntentionAction.canModify(myCatchSection)
        && myMoveBeforeSection.isValid()
        && myCatchSection.getCatchType() != null
        && PsiUtil.resolveClassInType(myCatchSection.getCatchType()) != null
        && myMoveBeforeSection.getCatchType() != null
        && PsiUtil.resolveClassInType(myMoveBeforeSection.getCatchType()) != null
        && !myCatchSection.getManager().areElementsEquivalent(
      PsiUtil.resolveClassInType(myCatchSection.getCatchType()),
      PsiUtil.resolveClassInType(myMoveBeforeSection.getCatchType()))) {
      return Presentation.of(QuickFixBundle.message("move.catch.up.text",
                                                    JavaHighlightUtil.formatType(myCatchSection.getCatchType()),
                                                    JavaHighlightUtil.formatType(myMoveBeforeSection.getCatchType())));
    }
    return null;
  }
@Override
  public @Nullable Presentation getPresentation(@NotNull ActionContext context)