Buggy code:
public final class MenuFactory { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String TIMERS = "menu_timer" ; public static final String CONTROLLERS = "menu_logic_controller" ; public static final String SAMPLERS = "menu_generative_controller" ; public static final String CONFIG_ELEMENTS = "menu_config_element" ; public static final String POST_PROCESSORS = "menu_post_processors" ; public static final String PRE_PROCESSORS = "menu_pre_processors" ; public static final String ASSERTIONS = "menu_assertions" ; public static final String NON_TEST_ELEMENTS = "menu_non_test_elements" ; public static final String LISTENERS = "menu_listener" ; private static Map menuMap = new HashMap ( ) ; private static Set elementsToSkip = new HashSet ( ) ; private static final String [ ] MENU_ADD_CONTROLLER = new String [ ] { MenuFactory . CONTROLLERS , MenuFactory . SAMPLERS , MenuFactory . ASSERTIONS , MenuFactory . CONFIG_ELEMENTS , MenuFactory . TIMERS , MenuFactory . LISTENERS , MenuFactory . PRE_PROCESSORS , MenuFactory . POST_PROCESSORS } ; private static final String [ ] MENU_PARENT_CONTROLLER = new String [ ] { MenuFactory . CONTROLLERS } ; private static final String [ ] MENU_ADD_SAMPLER = new String [ ] { MenuFactory . CONFIG_ELEMENTS , MenuFactory . ASSERTIONS , MenuFactory . TIMERS , MenuFactory . LISTENERS , MenuFactory . PRE_PROCESSORS , MenuFactory . POST_PROCESSORS } ; private static final String [ ] MENU_PARENT_SAMPLER = new String [ ] { MenuFactory . CONTROLLERS } ; private static List timers ; private static List controllers ; private static List samplers ; private static List configElements ; private static List assertions ; private static List listeners ; private static List nonTestElements ; private static List postProcessors ; private static List preProcessors ; private MenuFactory ( ) { } public static String doNothing ( ) { } public static void addEditMenu ( JPopupMenu menu , boolean removable ) { } public static void addFileMenu ( JPopupMenu menu ) { MenuFactory . addSeparator ( menu ) ; menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "open" ) , "Open" , OPEN ) ) ; menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "menu_merge" ) , "Merge" , MERGE ) ) ; menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "save_as" ) , "Save<seq2seq4repair_space>As" , SAVE_AS ) ) ; JMenuItem savePicture = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "save_as_image" ) , "Save<seq2seq4repair_space>Image" , SAVE_GRAPHICS , KeyStroke . getKeyStroke ( KeyEvent . VK_G , KeyEvent . CTRL_MASK ) ) ; menu . add ( savePicture ) ; if ( ! ( ( GuiPackage . getInstance ( ) . getCurrentGui ( ) ) instanceof Printable ) ) { savePicture . setEnabled ( false ) ; } <START_BUG> JMenuItem savePictureAll = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "save_as_image_all" ) , "Save<seq2seq4repair_space>Image<seq2seq4repair_space>All" , SAVE_GRAPHICS_ALL , KeyStroke . getKeyStroke ( KeyEvent . VK_G , ( ( KeyEvent . CTRL_MASK ) | ( KeyEvent . SHIFT_DOWN_MASK ) ) ) ) ; <END_BUG> menu . add ( savePictureAll ) ; JMenuItem disabled = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "disable" ) , "Disable" , DISABLE ) ; JMenuItem enabled = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "enable" ) , "Enable" , ENABLE ) ; boolean isEnabled = GuiPackage . getInstance ( ) . getTreeListener ( ) . getCurrentNode ( ) . isEnabled ( ) ; if ( isEnabled ) { disabled . setEnabled ( true ) ; enabled . setEnabled ( false ) ; } else { disabled . setEnabled ( false ) ; enabled . setEnabled ( true ) ; } menu . add ( enabled ) ; menu . add ( disabled ) ; MenuFactory . addSeparator ( menu ) ; menu . add ( MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "help" ) , "Help" , HELP ) ) ; } public static JMenu makeMenus ( String [ ] categories , String label , String actionCommand ) { } public static JPopupMenu getDefaultControllerMenu ( ) { } public static JPopupMenu getDefaultSamplerMenu ( ) { } public static JPopupMenu getDefaultConfigElementMenu ( ) { } public static JPopupMenu getDefaultVisualizerMenu ( ) { } public static JPopupMenu getDefaultTimerMenu ( ) { } public static JPopupMenu getDefaultAssertionMenu ( ) { } public static JPopupMenu getDefaultExtractorMenu ( ) { } public static JMenu makeMenu ( String category , String actionCommand ) { } public static JMenu makeMenu ( Collection menuInfo , String actionCommand , String menuName ) { } public static void setEnabled ( JMenu menu ) { } public static JMenuItem makeMenuItem ( String label , String name , String actionCommand ) { } public static JMenuItem makeMenuItem ( String label , String name , String actionCommand , KeyStroke accel ) { } private static void initializeMenus ( ) { } private static void addSeparator ( JPopupMenu menu ) { } static int menuMap_size ( ) { } static int assertions_size ( ) { } static int configElements_size ( ) { } static int controllers_size ( ) { } static int listeners_size ( ) { } static int nonTestElements_size ( ) { } static int postProcessors_size ( ) { } static int preProcessors_size ( ) { } static int samplers_size ( ) { } static int timers_size ( ) { } static int elementsToSkip_size ( ) { } }

Fix:
JMenuItem savePictureAll = MenuFactory . makeMenuItem ( JMeterUtils . getResString ( "save_as_image_all" ) , "Save<seq2seq4repair_space>Image<seq2seq4repair_space>All" , SAVE_GRAPHICS_ALL , KeyStroke . getKeyStroke ( KeyEvent . VK_G , ( ( KeyEvent . CTRL_MASK ) | ( KeyEvent . SHIFT_MASK ) ) ) ) ;