docs: public static String getLogicalName(String name, String trailingName) {
          if (isBlank(trailingName)) {
              return name;
          }
  
          String shortName = getShortName(name);
          if (shortName.indexOf(trailingName) == -1) {
              return name;
          }
  
          return shortName.substring(0, shortName.length() - trailingName.length());
      }