ConfigurationContext (AnActionEvent event) { return event.getUpdateSession().sharedData(SHARED_CONTEXT, () -> { ConfigurationContext context = getFromContext(event.getDataContext(), event.getPlace()); context.findExisting(); // precache context.getConfigurationsFromContext(); // precache DataManager.getInstance().saveInDataContext(event.getDataContext(), SHARED_CONTEXT, context); return context; }); }