boolean (int start, int end, FileViewProvider viewProvider) { PsiElement data = findBaseLanguageElement(viewProvider, start); if (data != null) { int dataEnd = data.getTextRange().getEndOffset(); if (dataEnd < end && isTemplateEdge(findBaseLanguageElement(viewProvider, dataEnd))) { return true; } } return false; }