void (@NotNull File file) { ApplicationManager.getApplication().invokeLater(() -> { VirtualFile vFile = VfsUtil.findFileByIoFile(file, true); if (vFile == null) return; new OpenFileDescriptor(myProject, vFile).navigate(true); }); }