This question is based on what @patdavid asked in this thread:
Somehow that thread just died out.
So again the question would this be possible as a future feature?
Obviously masking is already possible as the shadows/highlights tool uses masking. But how far could we go with masking? And what masks would be possible (luminosity, colors, etc…)?