...
In the lcsim-contrib project in Netbeans, right click on Source Packages and select New > Java Package. Add a package for your code.
If your name is Bob Smith, then you might call it org.lcsim.contrib.bsmith. I will use org.lcsim.contrib.example, but you should add a unique package name for yourself. You should only need to add this new base package the first time you add code to this project.
Create a new class in your package by right-clicking on the package in Source Packages and selecting New > Java Class.
...