It is possible to store your preferences in the IDEA project-file.
You have to implement JDOMExternalizable and save your preferences.
If you just wanna save a simple map for your class you can use this plugin.
Just add that component to the plugin.xml