The explicit wait is used to tell the Web Driver to wait for certain conditions (Expected Conditions) or the maximum time exceeded before throwing an "ElementNotVisibleException" exception.
Here's the code snippet:
public static void ExplicitWait(WebDriver driver, WebElement element) {
(new WebDriverWait(driver, 10)).until(ExpectedConditions.visibilityOf(element));
}