private static void putSourceInformation(@NotNull PsiReference reference, Object[] referencesAsObjects) {
    for (Object referenceAsObject : referencesAsObjects) {
      if (referenceAsObject instanceof UserDataHolderBase userDataHolderBaseReference) {
        userDataHolderBaseReference.putUserData(LOOKUP_ELEMENT_PSI_REFERENCE, reference);
      }
    }
  }
private static void putSourceInformation(@NotNull PsiReference reference, Object[] referencesAsObjects)