Revert "Remove obsolete LexicalProvider code"

This reverts commit 5bf79525cf9f231c98f9685da02eb3a3ec79ac1a.

Change-Id: I75a5761fe94a6c25cd3e37afc871b54b18507243