as suggested in eclipse, please use ```UI.getCurrent()``` instead of ```getUI().getCurrent()```