Clean and fix small issues
Improve unit test for export anchors
Fix delayed conref resolution
Refactor conkeyref and export anchor processing
Refactor and clean code based on Idea IDEA analysis
Fix Java refactoring bug

Issue is probably incompatibility between Java 6 and 7.