Remove unnecessary cast
Remove use of org.eclipse.jdt.internal.core.PackageFragmentRoot
Remove unneeded @SuppressWarnings("restriction")
Use AST.JLS8 instead of deprecated AST.JLS3
Remove unneeded @SuppressWarnings("unchecked")
Add generic <?> to List and Iterator declarations
Remove unused class org.hibernate.eclipse.console.utils.xpl.SelectionHelper
Create and use local TypedElementSelectionValidator, remove use of internal class