Extract SearchListener from inner class