private void resolveNamespace(ArrayElement element) {
if (element.getValue() instanceof InfixExpression) {
InfixExpression infix = (InfixExpression) element.getValue();
try {
if (!(infix.getLeft() instanceof Scalar) || !(infix.getRight() instanceof Scalar)) {
return;
}
Scalar left = (Scalar) infix.getLeft();
Scalar right = (Scalar) infix.getRight();
if ("__DIR__".equals(left.getValue())) {
String rightPath = right.getValue().replace("'", "").replace("\"", "").replaceFirst("/", "");
paths.add(path.append(rightPath));