You can attach source code to the library configuration. In the Project Structure dialog where you define which JARs make up which libraries, there is an “Attach Sources…” button that allows you to specify one or more source JARs, ZIPs or directories.