Method getNavigationElement() is used to get the source file by the class file, so external libraries are imported correctly
Comments and javadocs should be just deleted, because the way to determine the start of the class doesn't work if the javadocs contain a substring "class" or "interface"
It may look a bit weird but it works...