return Result.Continue;
}
if (!(file instanceof GroovyFileBase)) {
return Result.Continue;
}
<BUG>final int caret = editor.getCaretModel().getOffset();
</BUG>
final EditorHighlighter highlighter = ((EditorEx)editor).getHighlighter();
if (caret >= 1 && caret < text.length() && CodeInsightSettings.getInstance().SMART_INDENT_ON_ENTER) {
HighlighterIterator iterator = highlighter.createIterator(caret);

return Result.Continue;
}
if (!(file instanceof GroovyFileBase)) {
return Result.Continue;
}
final int caret = caretModel.getOffset();
final EditorHighlighter highlighter = ((EditorEx)editor).getHighlighter();
if (caret >= 1 && caret < text.length() && CodeInsightSettings.getInstance().SMART_INDENT_ON_ENTER) {
HighlighterIterator iterator = highlighter.createIterator(caret);
