I\'m hoping to debug into the source code of jaxb-impl.
I downloaded version 2.2.6, attached the sources and then realized the app I\'m debugging is using jaxb-impl ver
Project Structure | Libraries (or Module Dependencies if libraries are defined there):

In case Maven is managing the dependencies, Download Sources in the Maven Projects should also work:

Project Structure | Libraries (or Module Dependencies if libraries are defined there):

Then in the libries tab click on the plus mark:

Select the source type.

Then you have to select the source path and add the wanted libraries finally click apply!
Another (non-GUI) option is to delete the downloaded source files from $USER_HOME$/.ideaLibSources/ and restart IntelliJ. I'm working on a Grails project and didn't see anything relevant in the GUI.