code: function byCompQuery(selector) {
  
        var actualSelector = tiaEJ.replaceAll(selector) + ':visible(true)';
        var cmp = Ext.ComponentQuery.query(actualSelector);
  
        if (!cmp) {
          throw new Error(
            'Component not found for selector: ' + selector + ' , actualSelector: ' + actualSelector
          );
        }
  
        if (!cmp.length > 1) {
          throw new Error(
            cmp.length + 'components found for selector:' + selector + ' , actualSelector: ' + actualSelector
          );
        }
  
        return cmp;
      }
docs: Search the Component by https://docs.sencha.com/extjs/6.5.3/modern/Ext.ComponentQuery.html#method-query
  @param {String} selector - substrings like 'l"locale_key"' will be replaced by '"value_for_key"',
  i.e. '[text=l"settings"]' will be changed to '[text="Настройки"] for russian locale.
  Also id like '##idKey' will be replaced by '#realId' from tiaEJ.idMap.
  @return {Ext.Component} - component.