String (@NotNull String path) { if (path.equals("~")) { return SystemProperties.getUserHome(); } else if (path.startsWith("~/") || path.startsWith("~\\")) { return SystemProperties.getUserHome() + path.substring(1); } else { return path; } }