private ComponentProtoImpl getOrCreateComponentProtoImpl(Component message) {
if (message instanceof ComponentProtoImpl) {
return (ComponentProtoImpl) message;
} else {
ComponentProtoImpl messageImpl = new ComponentProtoImpl();
messageImpl.copyFrom(message);
return messageImpl;
}
}
/** Get or create a AnnotationBoundaryProtoImpl from a AnnotationBoundary. */