@Override
  public void load(@NotNull Consumer<String> consumer) {
    final VirtualFile file = VfsUtil.findFileByIoFile(new File(url), true);
    if (file == null || file.isDirectory()) {
      return;
    }

    Charset charset = file.getCharset();
    try (InputStream stream = file.getInputStream()) {
      try (BufferedReader br = new BufferedReader(new InputStreamReader(stream, charset))) {
        br.lines().forEach(consumer);
      }
    }
    catch (CancellationException exception) {
      throw exception;
    }
    catch (Exception e) {
      Logger.getInstance(FileLoader.class).error(e);
    }
  }
@Override
  public void load(@NotNull Consumer<String> consumer)