If you use the Intellij Task flow, then when clearing context, you will also lose all your bookmarks.
This plugin hooks into the task loading functionality and keeps all bookmarks synced when switching a task.
Get the Plugin from the Marketplace