question: @ NotNull public static HgVersion parseVersionAndExtensionInfo ( @ Nullable String output , @ NotNull List < String > errorLines ) throws ParseException { if ( StringUtil . isEmptyOrSpaces ( output ) ) { throw new ParseException ( "Empty hg version output: " + output , 0 ) ; } Matcher matcher = HG_VERSION_PATTERN . matcher ( output ) ; if ( matcher . matches ( ) ) { return new HgVersion ( getIntGroup ( matcher , 1 ) , getIntGroup ( matcher , 2 ) , getIntGroup ( matcher , 3 ) , parseUnsupportedExtensions ( errorLines ) ) ; } LOGGER . error ( "Couldn't identify hg version: " + output ) ; throw new ParseException ( "Unsupported format of hg version output: " + output , 0 ) ; }
target:  Parses output of "Hg version" command.