boolean (@NotNull AnAction action) { if (action instanceof AnActionWrapper wrapper) return isActionLightEditCompatible(wrapper.getDelegate()); return (action instanceof ActionGroup) && action.isDumbAware() || action instanceof LightEditCompatible; }