For example, by default Option(Alt) + Click on application icon in Dock hides all windows of currently active application. And Option(Alt) + Cmd + Click hides all applications, except for one which's icon was clicked.
Is it possible to override Modifier key + Click on app icon in Dock behaviour to, for example, minimising windows of application which's icon was clicked or opening a new window for it with let's say Option + Click on its icon?
My question is quite similar to this one from 8 years ago, but it seems there was no resolution at that time.