Add the OS detect logic to workaround for OS X, though even I dislike this workaround, but it's better than not working, update the code style setting for Java