In Java, you can quickly add a new class with the appropriate package statement. Open the Projects tool window (View > Toolbars > Projects). Right-click on a package and select Add > New Class. Enter the correct class name in the Name field and click Add. The package name is populated automatically.