static void checkDuplicateStatements(@NotNull PsiJavaModule module, @NotNull Consumer<? super HighlightInfo.Builder> errorSink) {
    checkDuplicateRefs(module.getRequires(), st -> st.getModuleName(), "module.duplicate.requires", errorSink);
    checkDuplicateRefs(module.getExports(), st -> st.getPackageName(), "module.duplicate.exports", errorSink);
    checkDuplicateRefs(module.getOpens(), st -> st.getPackageName(), "module.duplicate.opens", errorSink);
    checkDuplicateRefs(module.getUses(), st -> qName(st.getClassReference()), "module.duplicate.uses", errorSink);
    checkDuplicateRefs(module.getProvides(), st -> qName(st.getInterfaceReference()), "module.duplicate.provides", errorSink);
  }
static void checkDuplicateStatements(@NotNull PsiJavaModule module, @NotNull Consumer<? super HighlightInfo.Builder> errorSink)