code: function (classNameSelector) {
  					if (typeof classNameSelector === "string") {
  						return elements.filter(function (element) {
  							return element.getMetadata().getName() === classNameSelector;
  						});
  					}
  
  					if (typeof classNameSelector === "function") {
  						return elements.filter(function (element) {
  							return element instanceof classNameSelector;
  						});
  					}
  				}
docs: Gets elements by their type
  @public
  @function
  @param {string|function} classNameSelector Either string or function
  to be used when selecting a subset of elements
  @returns {Array} Array of matched elements
  @alias sap.ui.support.ExecutionScope.getElementsByClassName