removed unused import
sonar: Avoid throwing null pointer exceptions.
simplified boolean expression
sonar: Avoid throwing null pointer exceptions.
private constructor for util
missing curly braces
util classes final
demagicified numbers