@Nullable
  private static PsiJavaModule findDependencyByName(@NotNull PsiJavaModule module, @NotNull String name) {
    for (PsiRequiresStatement require : module.getRequires()) {
      if (name.equals(require.getModuleName())) return require.resolve();
    }
    return null;
  }
@Nullable
  private static PsiJavaModule findDependencyByName(@NotNull PsiJavaModule module, @NotNull String name)