boolean (AntDomTypeDef typedef, @NotNull final String resourceOrFileName) { final String format = typedef.getFormat().getStringValue(); if (format != null) { return "xml".equalsIgnoreCase(format); } return StringUtil.endsWithIgnoreCase(resourceOrFileName, ".xml"); }