ASTNode (@Nullable PsiElement position) { if (position == null) { return null; } ASTNode node = position.getNode(); if (node.getElementType() == GroovyTokenTypes.mIDENT) { node = TreeUtil.nextLeaf(node); } node = TreeUtil.skipWhitespaceAndComments(node, true); return node; }