An alternative way to create a new interface is to add it to an existing compilation unit.
Creating Java elements
Creating a new Java interface
Creating a nested interface
Creating a top-level interface
Renaming a compilation unit