public synchronized Collection getAllReferencedClassNamesInInternalForm() {
if (classNames == null) {
classNames = new HashSet<String>();//lazy instantiation
logger.logp(Level.FINER, myClassName, "getAllReferencedClassNames", // NOI18N
"Starting to visit"); // NOI18N
jc.accept(new DescendingVisitor(jc, new Visitor(this)));
logger.logp(Level.FINER, myClassName, "getAllReferencedClassNames", // NOI18N
"Finished visting"); // NOI18N
classNames = Collections.unmodifiableSet(classNames);
}
return classNames;