If intestinal permeability is sometimes associated with autoimmunity, couldn't stomach ulcers also cause autoimmunity in some cases?

Stoamch vs intestine. Stomach function is acid production, and mixing with bile with very little absorption of nutrients. Intestines function more for assimilation of nutrients.