boolean (@NotNull IntentionActionWithFixAllOption action) { Presentation presentation = getPresentation(); ModCommandAction unwrapped = action.asModCommandAction(); if (unwrapped == null || presentation == null || presentation.fixAllOption() == null) return false; return presentation.fixAllOption().belongsToMyFamily().test(unwrapped); }