LocalQuickFixAndIntentionActionOnPsiElement (@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); }