PyRequirement (@NotNull Matcher matcher) { final String path = matcher.group(PATH_IN_VCS_GROUP); final String egg = getEgg(matcher); final String project = extractProject(dropTrunk(dropRevision(path))); final Pair<String, String> nameAndVersion = parseNameAndVersionFromVcsOrArchive(egg == null ? StringUtil.trimEnd(project, ".git") : egg); return createVcsOrArchiveRequirement(nameAndVersion, calculateVcsInstallOptions(matcher), getVcsExtras(matcher)); }