Allow the source of Types to be identified: DECLARED, JAVA_PROJECT or JAVA_DEPENDENCY