Extract common display settings checks
Fix java file object names