Figured out why the groovy file was crashing on the commands.
When it was a groovy file, evidently, netbeans was showing this as a unused statement and when I ran “fix imports” when trying to debug the original problem, it was removed.
import com.simsilica.lemur.Button.ButtonAction;
All better now.