Appium - Long Press on Element in Appium

public static void longPressOnElement(WebElement element)
 {
     TouchAction action = new TouchAction(AndroidDriverManager.getDriver());
     action.longPress(element).release().perform();
 }