import java.util.Optional;
public final class Navigator {
private Navigator() {
}
public static Node getParentNode(Node node) {
<BUG>Node parent = node.getParentNode();
</BUG>
return parent;
}
public static Optional<TypeDeclaration<?>> findType(CompilationUnit cu, String qualifiedName) {

import java.util.Optional;
public final class Navigator {
private Navigator() {
}
public static Node getParentNode(Node node) {
Node parent = node.getParentNode().orElse(null);
return parent;
}
public static Optional<TypeDeclaration<?>> findType(CompilationUnit cu, String qualifiedName) {
