public void add(Method method){
  String methodName=method.getName();
  List l=get(methodName);
  if (l == null) {
    l=new ArrayList();
    methodByNameMap.put(methodName,l);
  }
  l.add(method);
  return;
}

public void add ( Method method ) { String methodName = method . getName ( ) ; List l = get ( methodName ) ; if ( l == null ) { l = new ArrayList ( ) ; methodByNameMap . put ( methodName , l ) ; } l . add ( method ) ; return ; }
add a method to a list of methods by name . for a particular class we are keeping track of all the methods with the same name .
