package Ġcom . bad oo . mv ic ore . plugin . utils Ċ Ċ import Ġcom . intellij . notification . Notification Display Type Ċ import Ġcom . intellij . notification . Notification Group Ċ import Ġcom . intellij . notification . Notification Type Ċ import Ġcom . intellij . notification . Notifications Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġjava . io . PrintWriter Ċ import Ġjava . io . String Writer Ċ import Ġjavax . swing . Swing Utilities Ċ Ċ fun ĠProject . show Error ( message : ĠString , Ġex : ĠException ? Ġ= Ġnull ) Ġ{ ĊĠĠĠ Ġval Ġexception Ġ= Ġex ?. convert ToString () Ġ?: Ġ"" ĊĠĠĠ Ġval Ġnotification Ġ= Ġnotification Group . create Notification ( message Ġ+ Ġ"\ n " Ġ+ Ġexception , ĠNotification Type . ERROR ) ĊĠĠĠ ĠSw ing Utilities . invoke Later Ġ{ ĊĠĠĠĠĠĠĠ ĠNotifications . Bus . notify ( notification , Ġthis ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ private Ġfun ĠException . convert ToString (): ĠString Ġ= ĠString Writer (). also Ġ{ ĊĠĠĠ Ġprint StackTrace ( PrintWriter ( it )) Ċ }. toString () ĊĊ Ċ private Ġval Ġnotification Group Ġ= ĠNotification Group (" MV IC ore ", ĠNotification Display Type . BAL LO ON , Ġtrue ) Ċ