Automatic detection Interfaces & Classes

Automatic detection and include of interfaces and parent classes
(suggested by Decima https://github.com/decima)