StatementContext statementContext = getChild(context, StatementContext.class);
if (statementContext != null) {
return getAdapter(StatementAdapter.class).adapt(statementContext);
}
TypeDeclarationContext typeDeclarationContext = getChild(context, TypeDeclarationContext.class);
if (typeDeclarationContext != null) {
return getAdapter(TypeDeclarationAdapter.class).adapt(typeDeclarationContext);
}
return null;