private void showPopupNotification(final User from, TransportEvent event) {
if (myMessageDispatcher.countPendingMessages() > 5) return;
IDEFacade ideFacade = ((IDEFacade)Pico.getInstance().getComponentInstanceOfType(IDEFacade.class));
final IdeaLocalMessage localMessage = (IdeaLocalMessage)ideFacade.createLocalMessageForIncomingEvent(event);
if (localMessage == null) return;
UIUtil.invokeLater(new Runnable() {
public void run() {
JComponent content = localMessage.getPopupComponent(from, myProject);
Color backgroundColor = new Color(255, 255, 217);
content.setOpaque(true);
content.setBackground(backgroundColor);
WindowManager.getInstance().getStatusBar(myProject).fireNotificationPopup(
content, backgroundColor);