List<PythonTemplateContextType> () { return TemplateContextTypes.getAllContextTypes().stream() .filter(PythonTemplateContextType.class::isInstance) .map(PythonTemplateContextType.class::cast) .collect(Collectors.toList()); }