private static @NotNull String substringBeforeFirstDot(@NotNull String classNameWithInnerClasses) {
    int dot = classNameWithInnerClasses.indexOf('.');
    if (dot < 0) {
      return classNameWithInnerClasses;
    }
    else {
      return classNameWithInnerClasses.substring(0, dot);
    }
  }
private static @NotNull String substringBeforeFirstDot(@NotNull String classNameWithInnerClasses)