I'm writing a custom language integration for the R-language. To get framework aware code-completion etc., my plugin builds an index of the user's R-installation (using some custom code not by using the indexing framework of Intellij).
1) I want to save the index with ObjectOutputStream into a file (to avoid reindexing whenever Idea restarts). What is the proper place (in the intellij cache/config directory) to put the index file? How can I obtain it programmatically?\
2) I would like to expose the indexing status to the user by using a background task. Is there an easy example about how implement such a background task?