}
private static boolean isOffsetWithinCfscript(int offset, @NotNull Document document, @NotNull PsiFile file) {
PsiElement at = getCfmlElementAtOffset(offset, file);
if (at != null) {
CfmlTagScriptImpl scriptTag = PsiTreeUtil.getParentOfType(at, CfmlTagScriptImpl.class);
if (scriptTag != null) {
return scriptTag.isInsideTag(offset);
}
else {
PsiElement firstChild = file.getFirstChild();
if (firstChild != null) {
ASTNode theDeepestChild = firstChild.getNode();