private static @NotNull Icon getIcon(@Nullable Project project) {
    ToolWindowManager toolWindowManager = project != null ? ToolWindowManager.getInstance(project) : null;
    if (toolWindowManager != null) {
      return toolWindowManager.getLocationIcon(ToolWindowId.FIND, getFindIcon());
    }
    return getFindIcon();
  }
private static @NotNull Icon getIcon(@Nullable Project project)