public static boolean isFieldInitialized(@NotNull PsiField field,
                                             @NotNull PsiMethod method) {
      if (field.hasModifierProperty(PsiModifier.STATIC)) {
        return true;
      }
      if (field.hasModifierProperty(PsiModifier.FINAL) &&
          field.getInitializer() != null) {
        return true;
      }
      return InitializationUtils.methodAssignsVariableOrFails(method,
                                                              field);
    }
public static boolean isFieldInitialized(@NotNull PsiField field,
                                             @NotNull PsiMethod method)