Selectively applying constant propagations only to those methods that work with UI IDs