String (PyExpression expr) { if (expr == null) { return null; } VirtualFile vFile = expr.getContainingFile().getVirtualFile(); Object result = new PyPathEvaluator(vFile == null ? null : vFile.getPath()).evaluate(expr); return result instanceof String ? (String) result : null; }