Highlighting the element in use Via JavaScriptExecutor

There is a feature available in Selenium i.e using JavaScriptExecutor we can highlight the element in use in green or a different color, so is it possible to do the same in TestProject, do we need any addon or any code for eg
(JavascriptExecutor js = (JavascriptExecutor) driver;
//use executeScript() method and pass the arguments
//Here i pass values based on css style. Yellow background color with solid red color border.
js.executeScript(“arguments[0].setAttribute(‘style’, ‘background: yellow; border: 2px solid red;’);”, ele);
})