void (RefElement refElement) { if (refElement instanceof RefFile refFile) { PsiFile file = refFile.getPsiElement(); UFile uFile = UastContextKt.toUElement(file, UFile.class); if (uFile != null) { onJavaFileReferencesBuilt(refFile, uFile); } } }