@Override
  public @NotNull LocalQuickFixAndIntentionActionOnPsiElement createMethodThrowsFix(@NotNull PsiMethod method,
                                                                                    @NotNull PsiClassType exceptionClass,
                                                                                    boolean shouldThrow,
                                                                                    boolean showContainingClass) {
    ModCommandAction action = shouldThrow
                              ? new MethodThrowsFix.Add(method, exceptionClass, showContainingClass)
                              : new MethodThrowsFix.Remove(method, exceptionClass, showContainingClass);
    return LocalQuickFixAndIntentionActionOnPsiElement.from(action, method);
  }
@Override
  public @NotNull LocalQuickFixAndIntentionActionOnPsiElement createMethodThrowsFix(@NotNull PsiMethod method,
                                                                                    @NotNull PsiClassType exceptionClass,
                                                                                    boolean shouldThrow,
                                                                                    boolean showContainingClass)