bool isResolvedLibrary(Element? element, String libraryUri) => element?.library?.firstFragment.source.uri.toString() == libraryUri;