Custom keyword for button method

Need help implementing selenium c# code in Katalon studio. My intention is creation of Button method, so at same time wait method will be included in it, can someone help me with it? Thanks

package com.helper.buttonhelper

import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement

import com.kms.katalon.core.annotation.Keyword
import com.kms.katalon.core.testobject.TestObject
import com.kms.katalon.core.util.KeywordUtil
import com.kms.katalon.core.webui.common.WebUiCommonHelper
import com.kms.katalon.core.webui.driver.DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords

import internal.GlobalVariable
import WebUiBuiltInKeywords as WebUI

public class ButtonHelper {

WebDriver driver = DriverFactory.getWebDriver();


public static bool IsElementPresent(By locator)
		return driver.FindElements(locator).Count == 1;
	catch (Exception)
		return false;

public static WebElement getElement(locator)
	if (IsElementPresent(locator))
		return driver.findElement(By locator)
		throw new NoSuchElementException("Element Not Found : " + locator);

public void ClickButton(String locator) {

	WebElement element = WebUI.waitForElementPresent(locator)
	element = getElement(locator)