boolean checkTextRange(@NotNull PsiElement expression, boolean expand) {
        TextRange range = expression.getTextRange();
        if (lineRange.intersects(range)) {
          if (expand && matchLine(expression)) {
            textRange.set(textRange.get().union(range));
          }
          return true;
        }
        return false;
      }
boolean checkTextRange(@NotNull PsiElement expression, boolean expand)