code: public static Integer getMajorVersion() {
          if (VERSION.equals("UNKNOWN")) {
              return null;
          }
  
          final String[] versionParts = VERSION.split("\\.");
          return Integer.parseInt(versionParts[0]);
      }
docs: Return the major version of current version, e.g. return 4 for 4.0.6
  
  @return major version or null if the current version is UNKNOWN