code: public static String extractLargerVersion(String versionA, String versionB) {
          if (versionB == null || versionA == null) {
              return versionA == null ? versionB : versionA;
          } else {
              String partsA[] = versionA.split("\\.");
              String partsB[] = versionB.split("\\.");
              for (int i = 0; i < (partsA.length < partsB.length ? partsA.length : partsB.length); i++) {
                  int pA = Integer.parseInt(partsA[i]);
                  int pB = Integer.parseInt(partsB[i]);
                  if (pA > pB) {
                      return versionA;
                  } else if (pB > pA) {
                      return versionB;
                  }
              }
              return partsA.length > partsB.length ? versionA : versionB;
          }
      }
docs: Compare to version strings and return the larger version strings. This is used in calculating
  the minimal required API version for this plugin. Version strings must be comparable as floating numbers.
  The versions must be given in the format in a semantic version foramt (e.g. "1.23"
  
  If either version is <code>null</code>, the other version is returned (which can be null as well)
  
  @param versionA first version number
  @param versionB second version number
  @return the larger version number