private void setNewPath(String newPath) {
final DartPartStatement sourceStatement =
DartElementGenerator.createPartStatementFromPath(getProject(), newPath);
final DartPathOrLibraryReference newPathReference = sourceStatement == null ? null : sourceStatement.getPathOrLibraryReference();
final DartStringLiteralExpression myStringLiteralExpression = PsiTreeUtil.getChildOfType(this, DartStringLiteralExpression.class);
if (newPathReference != null && myStringLiteralExpression != null) {
getNode().replaceChild(myStringLiteralExpression.getNode(), newPathReference.getStringLiteralExpression().getNode());
}
}