public static void replaceInContext(@NotNull PsiElement element, @NotNull String text) {
    replaceInContext(element, text, null);
  }
public static void replaceInContext(@NotNull PsiElement element, @NotNull String text)