private static Pair<DiagnosticKind,Boolean> parseCategoryString(String category){
  final String fixable="fixable-";
  final boolean isFixable=category.startsWith(fixable);
  if (isFixable) {
    category=category.substring(fixable.length());
  }
  DiagnosticKind categoryEnum=DiagnosticKind.fromParseString(category);
  return Pair.of(categoryEnum,isFixable);
}

private static Pair < DiagnosticKind , Boolean > parseCategoryString ( String category ) { final String fixable = "fixable-" ; final boolean isFixable = category . startsWith ( fixable ) ; if ( isFixable ) { category = category . substring ( fixable . length ( ) ) ; } DiagnosticKind categoryEnum = DiagnosticKind . fromParseString ( category ) ; return Pair . of ( categoryEnum , isFixable ) ; }
given a category string that may be prepended with " fixable - " , return the category enum that corresponds with the category and whether or not it is a isfixable error
