@Override
  protected @NotNull ModCommand perform(@NotNull ActionContext context, @NotNull PsiModifierListOwner owner) {
    boolean shouldSearch = myProcessHierarchy != ThreeState.NO &&
                           owner instanceof PsiMethod && AccessModifier.fromPsiModifier(myModifier) != null;
    if (!shouldSearch) {
      return ModCommand.psiUpdate(owner, this::updateModifier);
    }
    return updateAccessInHierarchy((PsiMethod)owner);
  }
@Override
  protected @NotNull ModCommand perform(@NotNull ActionContext context, @NotNull PsiModifierListOwner owner)