@Override
public void run() {
OverlayContainer container = getResultContainer(testedEntity);
if (container != null) {
OverlayAlert alert = createOverlay(message, title);
alert.show(container);
} else {
NonBlockingAlert.info(message, title);
}
}
private OverlayAlert createOverlay(final String message, final String title) {
Icon icon = (Icon) getValue(SMALL_ICON);
OverlayAlert alert = new OverlayAlert(message, icon, title) {
@Override
protected void configureOverlay(OverlayDecorator decorator) {
super.configureOverlay(decorator);
decorator.setAlpha(0.8f);