code: private static By getBy(By currentBy, SearchContext currentContent) {
          if (!ContentMappedBy.class.isAssignableFrom(currentBy.getClass())) {
              return currentBy;
          }
  
          return ContentMappedBy.class.cast(currentBy)
                  .useContent(getCurrentContentType(currentContent));
      }
docs: This methods makes sets some settings of the {@link By} according to
  the given instance of {@link SearchContext}. If there is some {@link ContentMappedBy}
  then it is switched to the searching for some html or native mobile element.
  Otherwise nothing happens there.
  
  @param currentBy is some locator strategy
  @param currentContent is an instance of some subclass of the {@link SearchContext}.
  @return the corrected {@link By} for the further searching