only format JavaClassSource instances
remove SourceType