Fixed, I think.
I found the option to interact with gradle (pressing an icon that moused-over as gradle that was on the RHS), right clicked on the name of the project (KoLmafia), got an option to "Sync Gradle Project", did that and many red squiggly lines indicating errors disappeared.
Thank...