I am working on a Intellij plugin and is my first attempt on Java language to build a "real project". On this plugin I have created a lot of classes (and enums) and, after refactoring the code, I ended up getting to the point where some classes I have created were no longer in use (except for unit tests, that is not packaged together on final package).
My question is: if a class are not need on package anymore, there is some way to it not be package without remove it from project? (Once that I could, futurely, need of this class again.)
Real example:
Finding by usage of UserDataHolderUtil enum on the project:
The .jar contents:
You can note that this enum is used currently only for unit tests, but it is packaged into final package and never is used.