Segmenting Anything Also Detect Anything