OrderEnumerator () { OrderEnumerator en = ModuleRootManager.getInstance(myModule).orderEntries(); en.recursively(); if (hasOption(COMPILE_ONLY)) en.exportedOnly().compileOnly(); if (!hasOption(LIBRARIES)) en.withoutLibraries().withoutSdk(); if (!hasOption(MODULES)) en.withoutDepModules(); if (!hasOption(TESTS)) en.productionOnly(); return en; }