Only someone who had ...

Only someone who had experienced such bitter despair would be able to recognize it in another.
Only someone who had experienced such bitter despair would be able to recognize it in another.