@SuppressWarnings("WeakerAccess")
  public static boolean canAffectPsi(@NotNull PsiTreeChangeEventImpl event) {
    PsiTreeChangeEventImpl.PsiEventType code = event.getCode();
    return !(code == BEFORE_PROPERTY_CHANGE ||
             code == PROPERTY_CHANGED && Strings.areSameInstance(event.getPropertyName(), PsiTreeChangeEvent.PROP_WRITABLE));
  }
@SuppressWarnings("WeakerAccess")
  public static boolean canAffectPsi(@NotNull PsiTreeChangeEventImpl event)