void (@NotNull PsiReferenceRegistrar registrar) { PsiReferenceProvider provider = CommentsReferenceContributor.COMMENTS_REFERENCE_PROVIDER_TYPE.getProvider(); registrar.registerReferenceProvider(new PsiElementPattern.Capture<>(ShLiteral.class) {}, provider, PsiReferenceRegistrar.LOWER_PRIORITY); }