public static boolean isReadOnlyProperty(PsiField field) {
    for (GetterSetterPrototypeProvider provider : EP_NAME.getExtensionList()) {
      if (DumbModeAccessType.RELIABLE_DATA_ONLY.ignoreDumbMode(
        () -> provider.canGeneratePrototypeFor(field) && provider.isReadOnly(field))) {
        return true;
      }
    }
    return field.hasModifierProperty(PsiModifier.FINAL);
  }
public static boolean isReadOnlyProperty(PsiField field)