public static void removeImages(@NotNull List<String> lines){
  for (int i=0; i < lines.size(); i++) {
    String newText=removeAllImages(lines.get(i));
    lines.set(i,newText);
  }
}

public static void removeImages ( @ NotNull List < String > lines ) { for ( int i = 0 ; i < lines . size ( ) ; i ++ ) { String newText = removeAllImages ( lines . get ( i ) ) ; lines . set ( i , newText ) ; } }
removes images in the markdown text .
