private void updateNullabilityAnnotation(@NotNull PsiParameter parm, @NotNull PsiVariable variable) {
    final NullableNotNullManager nullabilityManager = NullableNotNullManager.getInstance(myProject);
    final List<String> notNullAnnotations = nullabilityManager.getNotNulls();
    final List<String> nullableAnnotations = nullabilityManager.getNullables();

    if (AnnotationUtil.isAnnotated(variable, nullableAnnotations, CHECK_TYPE) ||
        AnnotationUtil.isAnnotated(variable, notNullAnnotations, CHECK_TYPE) ||
        PropertiesComponent.getInstance(myProject).getBoolean(ExtractMethodDialog.EXTRACT_METHOD_GENERATE_ANNOTATIONS, false)) {
      final Nullability nullability = inferNullability(variable, myElements[0]);
      if (nullability != Nullability.UNKNOWN) {
        boolean isNotNull = nullability == Nullability.NOT_NULL;
        final List<String> toKeep = isNotNull ? notNullAnnotations : nullableAnnotations;
        final List<String> toRemove = isNotNull ? nullableAnnotations : notNullAnnotations;
        final String toAdd = isNotNull ? nullabilityManager.getDefaultNotNull() : nullabilityManager.getDefaultNullable();
        updateAnnotations(parm, toRemove, toAdd, toKeep);
      }
    }
  }
private void updateNullabilityAnnotation(@NotNull PsiParameter parm, @NotNull PsiVariable variable)