int indent = 0;
if (TokenType.WHITESPACE == tokens.get(0).getType()) {
indent = tokens.get(0).getValue().length();
}
Token lastToken = tokens.pop();
TokenType lastTokenType = lastToken.getType();
if (lastTokenType == WHITESPACE) {
return new CompletionContext<T>("", "", false, CompletionType.GLOBAL, parseResult, indent);
}
String lastTokenValue = lastToken.getValue();
if (lastTokenType == KEYWORD) {
return new CompletionContext<T>(
"", lastTokenValue, false, CompletionType.GLOBAL, parseResult, indent);
}