Remove @SuppressWarnings("unchecked") and add @SuppressWarnings("rawtypes")
Remove commented section
Remove unused class PrintPreViewDiagramViewerAction