void (@NotNull PsiFile file, @NotNull Runnable runnable) { VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile == null) { runnable.run(); } else { getOrCreateCachedValueProvider(virtualFile).scheduleWhenComputed(runnable); } }