I use this method.
Don’t know how else you’d optimise it. I prefer to use an icon rather than checkbox and conditionally change the icon when List of X contains the relevant option, but that’s just a style preference.