InterfaceMethodDeclarationContext interfaceDeclarationContext =
getChild(context, InterfaceMethodDeclarationContext.class);
if (interfaceDeclarationContext != null) {
InterfaceMethodDeclaration interfaceMethodDeclaration =
getAdapter(InterfaceMethodDeclarationAdapter.class).adapt(interfaceDeclarationContext);
TypeParametersContext typeParametersContext = getChild(context, TypeParametersContext.class);
if (typeParametersContext != null) {
interfaceMethodDeclaration.setTypeParameters(
getAdapter(TypeParametersAdapter.class).adapt(typeParametersContext));
}
return interfaceMethodDeclaration;