private static boolean alreadyContainsRequires(@NotNull PsiJavaModule module, @NotNull String dependency) {
    for (PsiRequiresStatement requiresStatement : module.getRequires()) {
      if (Objects.equals(requiresStatement.getModuleName(), dependency)) {
        return true;
      }
    }
    return false;
  }
private static boolean alreadyContainsRequires(@NotNull PsiJavaModule module, @NotNull String dependency)