Draw on specific layers from currentTab.layers

That would be in a Palette plugin (that one). Basically I want to highlight layers in the Edit view that are filled in the Search field. The plugin allows for chained search-replace, and optionally only search in selectedLayers if textRange > 0.