private boolean isInRootModel(@NotNull VirtualFile file) {
    if (ProjectKt.getStateStore(myProject).isProjectFile(file)) {
      return false;
    }

    ProjectFileIndex index = ProjectFileIndex.getInstance(myProject);
    return index.isInContent(file) || index.isInLibrary(file);
  }
private boolean isInRootModel(@NotNull VirtualFile file)