public static @NotNull Collection<PsiJavaModule> findCycle(@NotNull PsiJavaModule module) {
    Project project = module.getProject();
    List<Set<PsiJavaModule>> cycles = CachedValuesManager.getManager(project).getCachedValue(project, () ->
      Result.create(findCycles(project),
                    PsiJavaModuleModificationTracker.getInstance(project),
                    ProjectRootModificationTracker.getInstance(project)));
    return Objects.requireNonNullElse(ContainerUtil.find(cycles, set -> set.contains(module)), Collections.emptyList());
  }
public static @NotNull Collection<PsiJavaModule> findCycle(@NotNull PsiJavaModule module)