This modification should not change anything logically.
This change simplifies these checks:
- identify an anchor
- identify a relative URI
The methods are introduced in PhutilRemarkupRule since that
is the parent class of these children classes:
- PhutilRemarkupDocumentLinkRule
- PhutilRemarkupHyperlinkRule
Ref T15182