public boolean contains(@NotNull FileType fileType) {
    //noinspection SSBasedInspection
    return fileTypeNames.stream().anyMatch(name->name.equals(fileType.getName()));
  }
public boolean contains(@NotNull FileType fileType)