code: public static Type getType() {
          String osName = System.getProperty("os.name").toLowerCase();
  
          if (osName.contains("windows")) {
              return Type.WINDOWS;
          } else if (osName.contains("linux")) {
              return Type.LINUX;
          } else if (osName.contains("mac")) {
              return Type.MAC;
          }
  
          return Type.UNKNOWN;
      }
docs: Get OS type.
  
  @return OS type