@Override
  public FileTemplate @NotNull [] getTemplates(@NotNull String category) {
    return switch (category) {
      case DEFAULT_TEMPLATES_CATEGORY -> ArrayUtil.mergeArrays(getInternalTemplates(), getAllTemplates());
      case INCLUDES_TEMPLATES_CATEGORY -> getAllPatterns();
      case CODE_TEMPLATES_CATEGORY -> getAllCodeTemplates();
      case J2EE_TEMPLATES_CATEGORY -> getAllJ2eeTemplates();
      default -> throw new IllegalArgumentException("Unknown category: " + category);
    };
  }
@Override
  public FileTemplate @NotNull [] getTemplates(@NotNull String category)