I haven't really seen any mods that use Vigilance and Essential with Java, so here's a quick example mod I made. It's basically a spinoff of the ModCore Example Mod, and the example on the Vigilance github repo. ModCore is depricated and the Vigilance examples all use Kotlin.
This example mod showcases all the different configuration options available through Vigilance.
If you're planning on using this in a development environment, don't forget to add
--tweakClass gg.essential.loader.stage0.EssentialSetupTweaker
to the JVM arguments or it won't work