In my example I have something like this: 

```
public class Example extends Random, Math {...} 

```

Using JavaParser I want to get the names of classes that are after 'extends' keyword. 

How can I do it? 

On the site of JavaParser I have found something like this: 

```
compilationUnit.getNodesByType(FieldDeclaration.class).stream().
    filter(f -> f.getModifiers().contains(PUBLIC) && 
            !f.getModifiers().contains(STATIC)).
    forEach(f -> System.out.println("Check field at line " + f.getBegin().get().line));

```

Or maybe it should be done in visit() method?

Thanks for your advices.