@Override
protected boolean filterKeyword(KeywordData keyword) {
// if the class does not have parent
if ((keyword.context & PHPKeywords.METHOD_BODY) != 0
&& isParent(keyword)) {
ICompletionContext context = getContext();
if (context instanceof GlobalMethodStatementContext) {
GlobalMethodStatementContext globalContext = (GlobalMethodStatementContext) context;
IType type = globalContext.getEnclosingType();
try {
if (type != null && PHPFlags.isClass(type.getFlags())) {