Refactored validation rule.
If one single package is found in list, with java.util or java.lang
package, the type is automatically returned.