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