That’s what happened on this old issue:
Solution is either declare class as static or place the class inside its own “.java” file tab:
static