boolean (PsiElement element) { if (element != null && (element.getParent() instanceof GrReferenceExpression || element.getParent() instanceof GrClosableBlock)) { final PsiElement parent = element.getParent().getParent(); if (!(parent instanceof GrStringInjection)) return false; PsiElement nextSibling = parent.getNextSibling(); if (nextSibling == null) return false; return INNER_STRING_TOKENS.contains(nextSibling.getNode().getElementType()); } return false; }