private static DarculaTextBorderNew getDarculaTextBorderNew(@Nullable Component c) {
    return c instanceof JComponent jComponent && jComponent.getBorder() instanceof DarculaTextBorderNew darculaTextBorder
           ? darculaTextBorder
           : null;
  }
private static DarculaTextBorderNew getDarculaTextBorderNew(@Nullable Component c)