docs: @SuppressWarnings("squid:S1452")
  	public static FileAttribute<?>[] userDirectoryDefault(FileSystem fileSystem) {
  		List<FileAttribute<?>> userDefault = new ArrayList<>();
  		Set<String> fileAttributeViews = fileSystem.supportedFileAttributeViews();
  
  		if (fileAttributeViews.contains(POSIX)) {
  			userDefault.add(PosixFilePermissions.asFileAttribute(EnumSet.of(PosixFilePermission.OWNER_READ,
  					PosixFilePermission.OWNER_WRITE, PosixFilePermission.OWNER_EXECUTE)));
  		}
  		return userDefault.toArray(new @Nullable FileAttribute<?>[userDefault.size()]);
  	}