boolean (PsiElement element) { if (element == null) return false; ASTNode node = element.getNode(); if (node == null) return false; IElementType elementType = node.getElementType(); return elementType == GroovyTokenTypes.mNLS || elementType == TokenType.WHITE_SPACE; }