@Deprecated
  public static @Nullable ValidationInfo checkDirectory(@NotNull String directoryPath, @NotNull JTextField component) {
    return checkDirectory(directoryPath, (JComponent) component);
  }
@Deprecated
  public static @Nullable ValidationInfo checkDirectory(@NotNull String directoryPath, @NotNull JTextField component)