public static @Nullable VirtualFile findLocalFileByPath(String path) {
    var application = ApplicationManager.getApplication();
    if (!application.isDispatchThread() && application.isReadAccessAllowed()) {
      // can not refresh under Read lock on non-dispatch thread. See VirtualFileSystem.refreshAndFindFileByPath javadoc
      return StandardFileSystems.local().findFileByPath(path);
    } else {
      return StandardFileSystems.local().refreshAndFindFileByPath(path);
    }
  }
public static @Nullable VirtualFile findLocalFileByPath(String path)