[Demonstration 1]

[Buggy Method]
public WebElement moveToElement(WebElement element, final int seconds) {
    return actionWithRetry(seconds, new WebElementAction() {

        public WebElement run(int seconds) {
            LOGGER.debug("moveToElement: moving  to: " + element);
            actions().moveToElement(element);
            return element;
        }
    });
}

[Buggy Hunk]
public WebElement moveToElement( WebElement element, final int seconds ) {

[Patch]
public WebElement moveToElement( final WebElement element, final int seconds ) {

[Demonstration 2]

[Buggy Method]
protected static List<WebElement> getElements(String XPath) {
    List<WebElement> result = getWebDriver().findElements(By.xpath(XPath));
    return result;
}

[Buggy Hunk]
List<WebElement> result = getWebDriver().findElements(By.xpath(XPath));

[Patch]
List<WebElement> result = WebDriverManager.getWebDriver().findElements(By.xpath(XPath));

[Demonstration 3]

[Buggy Method]
@Override
public Object getRelatedOrNull(Object object, IRelationTypeSide relationType) {
    Object related = null;
    ArtifactReadable artifact = atsServer.getArtifact(object);
    if (artifact != null) {
        try {
            related = artifact.getRelated(relationType);
        } catch (ArtifactDoesNotExist ex) {
            // do nothing
        }
    }
    return related;
}

[Buggy Hunk]
related = artifact.getRelated(relationType);

[Patch]
related = artifact.getRelated(relationType).getAtMostOneOrNull();