void (@NotNull String path, boolean readOnlyFlag) { try { NioFiles.setReadOnly(Paths.get(path), readOnlyFlag); } catch (IOException e) { LOG.warn("Can't set writable attribute of '" + path + "' to '" + readOnlyFlag + "'"); } }