PyPackageVersion (@NotNull String version) { final Matcher matcher = VERSION.matcher(version); if (matcher.matches()) { return new PyPackageVersion( normalizeEpoch(matcher), normalizeRelease(matcher), normalizePre(matcher), normalizePost(matcher), normalizeDev(matcher), normalizeLocal(matcher) ); } return null; }