void (@NotNull PsiModifierListOwner psiFrom, @NotNull RefJavaElement ref, @Nullable PsiElement findIn) { UDeclaration decl = UastContextKt.toUElement(psiFrom, UDeclaration.class); UElement uFindIn = UastContextKt.toUElement(findIn); if (decl != null && findIn != null) { addReferencesTo(decl, ref, uFindIn); } }