Use valueOf factory method instead of constructor
Add missing static modifier to inner classes
Remove unused PresentMode.device instance variable
Add volatile modifier to ColorSelector.selector