boolean (final int offset, final Editor editor) { HighlighterIterator iterator = editor.getHighlighter().createIterator(offset); if (iterator.atEnd()) return false; if (iterator.getStart() > 0) iterator.retreat(); return TypedHandlerUtil.isClassLikeIdentifier(offset, editor, iterator, GroovyTokenTypes.mIDENT); }