private void registerReferencesFromInjectedFragments(@NotNull PsiElement element) {
      InjectedLanguageManager manager = InjectedLanguageManager.getInstance(myFile.getProject());
      manager.enumerateEx(element, myFile, false, (injectedPsi, places) -> {
        if (InjectedLanguageJavaReferenceSupplier.containsPsiMemberReferences(injectedPsi.getLanguage().getID())) {
          injectedPsi.accept(new PsiRecursiveElementWalkingVisitor() {
            @Override
            public void visitElement(@NotNull PsiElement element) {
              super.visitElement(element);
              for (PsiReference reference : element.getReferences()) {
                PsiElement resolved = reference.resolve();
                if (resolved instanceof PsiNamedElement namedElement) {
                  registerLocallyReferenced(namedElement);
                  if (resolved instanceof PsiMember) {
                    registerReference(reference, new CandidateInfo(resolved, PsiSubstitutor.EMPTY));
                  }
                }
              }
            }
          });
        }
      });
    }
private void registerReferencesFromInjectedFragments(@NotNull PsiElement element)