JBIDE-17949 - Problem with filters and interceptors defined as inner classes

Fixed problem that still remained when underlying resource was saved:
- the validator for the inner provider would run first and report a problem,
- then the top level resource validator would remove all markers for the underlying file and perform
  its validation, meaning that the markers for the inner provider would be gone.

Fixed a related problem where only top-level types would be considered, which excluded the inner provider.