code: public static Class<?> loadProjectClass(Project project, String className) {
          URLClassLoader classLoader = getProjectClassLoader(project);
          if (classLoader != null ){
              try {
                  return classLoader.loadClass(className);
              } catch (ClassNotFoundException e) {
                  // ignore
              } finally {
                  try {
                      classLoader.close();
                  } catch (IOException e) {
                      // ignore
                  }
              }
          }
          return null;
      }
docs: Loads a class of the given name from the project class loader or returns null if its not found