protected Collection<String> filterIdentifiers(Collection<String> identifiers){
  Collection<String> validIdentifiers=new ArrayList<String>(identifiers.size());
  for (  String identifier : identifiers) {
    if (isValidIdentifier(identifier))     validIdentifiers.add(identifier);
  }
  return validIdentifiers;
}

protected Collection < String > filterIdentifiers ( Collection < String > identifiers ) { Collection < String > validIdentifiers = new ArrayList < String > ( identifiers . size ( ) ) ; for ( String identifier : identifiers ) { if ( isValidIdentifier ( identifier ) ) validIdentifiers . add ( identifier ) ; } return validIdentifiers ; }
filters the given collection of strings , returning a new collection containing only those strings which are valid identifiers . if no strings within the collection are valid identifiers , the returned collection will simply be empty .
