You can move Java compilation units between packages by Drag & Drop - all missing imports will be added and references updated.