void () { if (myProject.isDisposed() || !myProject.isOpen()) return; if (myDescription != null) { NotificationPanel panel = new NotificationPanel(); panel.setText(createMessage(myProject, myDescription, selectedFile)); final JBPopup message = JBPopupFactory.getInstance().createComponentPopupBuilder(panel, panel.getLabel()).createPopup(); if (editor != null && editor.getComponent().isShowing()) { message.showInBestPositionFor(editor); } else { message.showCenteredInCurrentWindow(myProject); } } }