void () { IntentionPreviewPopupUpdateProcessor processor = myPreviewPopupUpdateProcessor; boolean shouldShow = !processor.isShown(); EditorSettingsExternalizable.getInstance().setShowIntentionPreview(shouldShow); if (shouldShow) { processor.activate(); showPreview(); } else { processor.hide(); } }