public static List<Declaration> lookupOverloadedByName(List<Declaration> members,String name){
  List<Declaration> result=null;
  for (  Declaration dec : members) {
    if (isResolvable(dec) && isNamed(name,dec)) {
      if (result == null) {
        result=new ArrayList<Declaration>(3);
      }
      result.add(dec);
    }
  }
  if (result == null) {
    result=Collections.emptyList();
  }
  return result;
}

public static List < Declaration > lookupOverloadedByName ( List < Declaration > members , String name ) { List < Declaration > result = null ; for ( Declaration dec : members ) { if ( isResolvable ( dec ) && isNamed ( name , dec ) ) { if ( result == null ) { result = new ArrayList < Declaration > ( 3 ) ; } result . add ( dec ) ; } } if ( result == null ) { result = Collections . emptyList ( ) ; } return result ; }
find the all the declarations with the given name that occur in the given list of members
