String (@NotNull Matcher matcher) { final String postReleaseType = matcher.group(POST_RELEASE_TYPE_GROUP); if (postReleaseType != null) { final String postReleaseNumber = matcher.group(POST_RELEASE_NUMBER_GROUP); final String normalizedPostReleaseNumber = postReleaseNumber == null ? "0" : normalizeNumber(postReleaseNumber); return "post" + normalizeNumber(normalizedPostReleaseNumber); } final String implicitPostReleaseNumber = matcher.group(IMPLICIT_POST_RELEASE_NUMBER_GROUP); if (implicitPostReleaseNumber != null) { return "post" + normalizeNumber(implicitPostReleaseNumber); } return null; }