private boolean isTemplateNamePart(char ch)
    {
        return !Character.isWhitespace(ch) && ch != '(' && ch != ')' && ch != '{' && ch != '}' && ch != ';';
    }
Checks whether the character is a valid character in Java template names

@param ch the character
@return <code>true</code> if the character is part of a template name
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/templates/SQLTemplatesPage.java