PyRequirement (@NotNull Pattern pattern, @NotNull String line) { final Matcher matcher = pattern.matcher(line); if (matcher.matches()) { return new PyRequirementImpl(matcher.group(NAME_GROUP), Collections.emptyList(), Collections.singletonList(dropComments(line, matcher)), ""); } return null; }