}
@Override
public CharSequence getText(CodeCompletionContext completionContext) {
Project project = completionContext.getParameters().getOriginalFile().getProject();
TokenType tokenType = tokenElementType.getTokenType();
String text = tokenType.getValue();
DBLanguage language = tokenElementType.getLanguage();
CodeStyleCaseSettings styleCaseSettings = DBLCodeStyleManager.getInstance(project).getCodeStyleCaseSettings(language);
CodeStyleCaseOption caseOption =
tokenType.isFunction() ? styleCaseSettings.getFunctionCaseOption() :
tokenType.isKeyword() ? styleCaseSettings.getKeywordCaseOption() :
tokenType.isParameter() ? styleCaseSettings.getParameterCaseOption() :
tokenType.isDataType() ? styleCaseSettings.getDatatypeCaseOption() : null;
if (caseOption != null) {
text = caseOption.changeCase(text);
}