class Files2 {

    public static boolean acceptByLowerCaseExtension(File pathname, String... lowerCaseExtensions) {
        String ext = Files.getFileExtension(pathname.getName()).toLowerCase(Locale.ENGLISH);
        for (String o : lowerCaseExtensions) {
            if (ext.equals(o)) {
                return true;
            }
        }
        return false;
    }

    private  Files2();

}