@SuppressWarnings("unchecked")
  @Nullable
  protected <T> T getExternalData(@NotNull AnActionEvent e, Class<T> dataClass) {
    ExternalSystemNode node = ContainerUtil.getFirstItem(e.getData(ExternalSystemDataKeys.SELECTED_NODES));
    return node != null && dataClass.isInstance(node.getData()) ? (T)node.getData() : null;
  }
@SuppressWarnings("unchecked")
  @Nullable
  protected <T> T getExternalData(@NotNull AnActionEvent e, Class<T> dataClass)