void (@NotNull ReferenceInjector injector, @NotNull List<? extends PsiLanguageInjectionHost.Shred> places) { injected.set(Boolean.TRUE); element.putUserData(LanguageInjectionSupport.INJECTOR_SUPPORT, registry.getLanguageInjectionSupport()); for (PsiLanguageInjectionHost.Shred place : places) { if (place.getHost() == element) { references.addAll(Arrays.asList(injector.getReferences(element, context, place.getRangeInsideHost()))); } } }