code: public void onComponentRightClicked(final ComponentBuilder componentBuilder, final MouseEvent me) {
          final boolean isMultiStream = componentBuilder.getDescriptor().isMultiStreamComponent();
  
          final JPopupMenu popup = new JPopupMenu();
  
          final JMenuItem configureComponentMenuItem = new JMenuItem("Configure ...",
                  ImageManager.get().getImageIcon(IconUtils.MENU_OPTIONS, IconUtils.ICON_SIZE_SMALL));
          configureComponentMenuItem.addActionListener(e -> _actions.showConfigurationDialog(componentBuilder));
          popup.add(configureComponentMenuItem);
  
          if (!isMultiStream && componentBuilder instanceof InputColumnSourceJob
                  || componentBuilder instanceof HasFilterOutcomes) {
              popup.add(createLinkMenuItem(componentBuilder));
          }
  
          for (final OutputDataStream dataStream : componentBuilder.getOutputDataStreams()) {
              final JobGraphLinkPainter.VertexContext vertexContext =
                      new JobGraphLinkPainter.VertexContext(componentBuilder,
                              componentBuilder.getOutputDataStreamJobBuilder(dataStream), dataStream);
              popup.add(createLinkMenuItem(vertexContext));
          }
  
          final Icon renameIcon = ImageManager.get().getImageIcon(IconUtils.ACTION_RENAME, IconUtils.ICON_SIZE_SMALL);
          final JMenuItem renameMenuItem = WidgetFactory.createMenuItem("Rename component", renameIcon);
          renameMenuItem.addActionListener(new DefaultRenameComponentActionListener(componentBuilder, _graphContext));
          popup.add(renameMenuItem);
  
          if (!isMultiStream && componentBuilder instanceof TransformerComponentBuilder) {
              final TransformerComponentBuilder<?> tjb = (TransformerComponentBuilder<?>) componentBuilder;
              final JMenuItem previewMenuItem = new JMenuItem("Preview data",
                      ImageManager.get().getImageIcon(IconUtils.ACTION_PREVIEW, IconUtils.ICON_SIZE_SMALL));
              previewMenuItem.addActionListener(new PreviewTransformedDataActionListener(_windowContext, tjb));
              previewMenuItem.setEnabled(componentBuilder.isConfigured());
              popup.add(previewMenuItem);
          }
  
          if (ChangeRequirementMenu.isRelevant(componentBuilder)) {
              popup.add(new ChangeRequirementMenu(componentBuilder));
          }
          popup.addSeparator();
          popup.add(new RemoveComponentMenuItem(componentBuilder));
          popup.show(_graphContext.getVisualizationViewer(), me.getX(), me.getY());
      }
docs: Invoked when a component is right-clicked
  
  @param componentBuilder
  @param me