@Override
  public void update(@NotNull AnActionEvent e) {
    final Presentation presentation = e.getPresentation();
    final TypeInfo ref = getSelectedClass(e);
    final boolean enabled = isEnabled(e) && ref != null && ref.canGetInstanceInfo();
    presentation.setEnabled(enabled);
    if (enabled) {
      presentation.setText(getPresentation(e));
    }
  }
@Override
  public void update(@NotNull AnActionEvent e)