private static List<String> normalizeStarImports(List<String> starImports){
  List<String> result=new ArrayList<String>(starImports.size());
  for (  String starImport : starImports) {
    if (starImport.endsWith(".*")) {
      result.add(starImport);
    }
 else     if (starImport.endsWith(".")) {
      result.add(starImport + "*");
    }
 else {
      result.add(starImport + ".*");
    }
  }
  return Collections.unmodifiableList(result);
}

private static List < String > normalizeStarImports ( List < String > starImports ) { List < String > result = new ArrayList < String > ( starImports . size ( ) ) ; for ( String starImport : starImports ) { if ( starImport . endsWith ( ".*" ) ) { result . add ( starImport ) ; } else if ( starImport . endsWith ( "." ) ) { result . add ( starImport + "*" ) ; } else { result . add ( starImport + ".*" ) ; } } return Collections . unmodifiableList ( result ) ; }
ensures that every star import ends with . * as this is the expected syntax in import checks .
