private static ASTFactory factory(@NotNull IElementType type) {
    return LanguageASTFactory.INSTANCE.forLanguage(type.getLanguage());
  }
private static ASTFactory factory(@NotNull IElementType type)