boolean (final Project project, final Object contentId) { final MessageView messageView = MessageView.getInstance(project); for (Content content : messageView.getContentManager().getContents()) { if (CONTENT_ID_KEY.get(content) == contentId) { messageView.getContentManager().setSelectedContent(content); return true; } } return false; }