private static Object getSourceComponent(@NotNull AnActionEvent e) {
    return e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT);
  }
private static Object getSourceComponent(@NotNull AnActionEvent e)