When adding imports using compiler config script, Organize Imports (Ctrl+Shift+O) fails for source unit in default package
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:113)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:99)
at org.eclipse.text.edits.TextEdit.<init>(TextEdit.java:153)
at org.eclipse.text.edits.ReplaceEdit.<init>(ReplaceEdit.java:39)
at org.eclipse.jdt.internal.core.dom.rewrite.imports.ImportEditor.createTextEdit(ImportEditor.java:200)
at org.eclipse.jdt.internal.core.dom.rewrite.imports.ImportRewriteAnalyzer.analyzeRewrite(ImportRewriteAnalyzer.java:568)
at org.eclipse.jdt.core.dom.rewrite.ImportRewrite.rewriteImports(ImportRewrite.java:1359)
at org.codehaus.groovy.eclipse.refactoring.actions.OrganizeGroovyImports.calculateMissingImports(OrganizeGroovyImports.java:258)
at org.codehaus.groovy.eclipse.refactoring.actions.OrganizeGroovyImports.calculateAndApplyMissingImports(OrganizeGroovyImports.java:112)
at org.codehaus.groovy.eclipse.refactoring.actions.OrganizeGroovyImportsAction.run(OrganizeGroovyImportsAction.java:68)
at org.eclipse.jdt.ui.actions.OrganizeImportsAction.run(OrganizeImportsAction.java:206)
A few items to clean up:
Alias imports do not show alias name in Outline view
Static imports highlight "static " in editor when selected from Outline view
Static method imports with multiple overloads display last overload in hover and navigate to first overload


Groovy editor:
Java editor:
Static imports with an alias display improper first line in hover


With an alias:
Without an alias:
When adding imports using compiler config script, "import declarations" shows up before package in Outline view (with or without import statements, which come after the package statement)
withConfig(configuration) { imports { star 'java.util.function' } }When adding imports using compiler config script, import statements lack collapse region


no implicit imports:
with implicit imports:
When adding imports using compiler config script, Organize Imports (Ctrl+Shift+O) fails for source unit in default package