The function `Util.compareVersions` should be extracted to a separate class. All methods based on a static variable should be deprecated.