public @Nullable @NlsSafe String getExtension() {
    CharSequence extension = FileUtilRt.getExtension(getNameSequence(), null);
    return extension == null ? null : extension.toString();
  }
public @Nullable @NlsSafe String getExtension()