I've created a method that accepts a webelement and returns if this element is on page or not (true/false) you can use it in this case. Method name is "checkIfelementOnPage" and is located in BasePageObject. I don't know if your branch contains commit with my change. Could you check?
If it does, please remove the By variable and use only webelement in both this class and VisualEdtior class