public static String getLocationMethodName(@NotNull Location location) {
    if (location instanceof GeneratedLocation generatedLocation) {
      return generatedLocation.methodName();
    }
    Method method = getMethod(location);
    if (method == null) {
      return "<invalid method>";
    }
    return method.name();
  }
public static String getLocationMethodName(@NotNull Location location)