void (@NotNull PyReferenceExpression expression, @NotNull PsiLanguageInjectionHost host) { var encodedImports = host.getCopyableUserData(INJECTION_REFERENCES); var rememberedReferences = encodedImports == null ? new ArrayList<PyReferenceExpression>() : encodedImports; rememberedReferences.add(expression); host.putCopyableUserData(INJECTION_REFERENCES, rememberedReferences); }