Set<EntryParser> innerEntryParsers;
try {
innerEntryParsers = entryParsers.stream()
.map(Object::getClass)
.map(clazz -> {
try {
if (restrictIndentation) {
if (clazz.equals(ActionStartEntryParser.class)) {
Method method = clazz.getDeclaredMethod("createForIndentation", int.class, Set.class);
return (EntryParser)method.invoke(null, indentation + 4, entryParsers);
}