code: /*
  HideUtilityClassConstructor
  
  
  */
  
  package com.puppycrawl.tools.checkstyle.checks.design.hideutilityclassconstructor;
  
  import java.io.Serializable;
  
  public class InputHideUtilityClassConstructorSerializableInnerStatic // ok
          implements Serializable {
      private static final long serialVersionUID = 1L;
  
      public InputHideUtilityClassConstructorSerializableInnerStatic(int i) {
          // no code
      }
  
      public String getValue() {
          return "";
      }
  
      // It is NOT Utility Inner class
      @SuppressWarnings("unused")
      public static class Event {
          // Top level class have access to fields - no need in public getters
          private String ind;
          private String ind1;
  
          public Event(String value){
              // do a lot of calculations
          }
  
          // static because this method is utility
          public static String getEmptyString() {
              return "";
          }
      }
  
      // It is Utility Inner class
      @SuppressWarnings("unused")
      public static class Event1 {
          private String ind;
          private String ind1;
  
          private Event1(){
              // do a lot of calculations
          }
  
          // static because this method is utility
          public static String getEmptyString() {
              return "";
          }
      }
  }
  