public static @Nullable Project openFile(@NotNull Path path, boolean suggestSwitchToProject) {
    VirtualFile virtualFile = VfsUtil.findFile(path, true);
    if (virtualFile != null) {
      if (suggestSwitchToProject) {
        virtualFile.putUserData(SUGGEST_SWITCH_TO_PROJECT, true);
      }
      Project project = LightEditService.getInstance().openFile(virtualFile);
      LightEditFeatureUsagesUtil.logFileOpen(project, CommandLine);
      return project;
    }
    else {
      return handleNonExisting(path);
    }
  }
public static @Nullable Project openFile(@NotNull Path path, boolean suggestSwitchToProject)