private static boolean isCodeFragmentType(@NotNull IElementType type) {
    return type == TokenType.CODE_FRAGMENT || type instanceof ICodeFragmentElementType;
  }
private static boolean isCodeFragmentType(@NotNull IElementType type)