Collection<File> () { switch (myType) { case TEXTMATE -> { return getFilesInBundle("Snippets", new BundleFilesFilter(Constants.TEXTMATE_SNIPPET_EXTENSION, "plist")); } case SUBLIME -> { return emptyList(); } } throw new IllegalArgumentException("Only textmate and sublime bundles are supported. Use TextMateBundleReader instead."); }