docs: public static void rename(File fileNow, File fileToBe) {
          if (fileNow.renameTo(fileToBe)) {
              return;
          }
          if (!fileNow.exists()) {
              throw new HazelcastException(format("Failed to rename %s to %s because %s doesn't exist.",
                      fileNow, fileToBe, fileNow));
          }
          if (!fileToBe.exists()) {
              throw new HazelcastException(format("Failed to rename %s to %s even though %s doesn't exist.",
                      fileNow, fileToBe, fileToBe));
          }
          if (!fileToBe.delete()) {
              throw new HazelcastException(format("Failed to rename %s to %s. %s exists and could not be deleted.",
                      fileNow, fileToBe, fileToBe));
          }
          if (!fileNow.renameTo(fileToBe)) {
              throw new HazelcastException(format("Failed to rename %s to %s even after deleting %s.",
                      fileNow, fileToBe, fileToBe));
          }
      }