public static @Nullable <T extends PsiElement> T forcePsiPostprocessAndRestoreElement(@NotNull T element) {
    return forcePsiPostprocessAndRestoreElement(element, false);
  }
public static @Nullable <T extends PsiElement> T forcePsiPostprocessAndRestoreElement(@NotNull T element)