File (@NotNull File baseDir, @NotNull String relativePath) { File file; try { file = new File(baseDir, relativePath).getCanonicalFile(); } catch (IOException e) { LOG.info(e); file = new File(baseDir, relativePath); } return file; }