Annotate ._isResourceRelated() as private.