Rework method searching routine, so now it will search classes both from application and from library.