1. A method of automatically discovering application components that populate a user interface element, comprising: building, by a processor, a directed graph from an application code implementing a backend layer of an application; identifying, by the processor, a code element in the application code that matches an input element of a user interface of the application; identifying, by the processor, a data store element of a data store implementing data layer of the application that matches the input element; for the input element, building, by the processor, a map of trees tracing through the directed graph based on the code element and the data store element that are identified; and grouping, by the processor, the map of trees based on at least matching of annotations of the trees in the map, a similarity of begin and end points of the trees in the map and matching of the end points of the trees in the map, wherein the map of trees includes the application components the processor visited for populating the input element of the user interface.