Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
252,600
List<VirtualFile> (@NotNull final LibraryOrderEntry orderEntry, final List<VirtualFile> value) { Collections.addAll(value, orderEntry.getRootFiles(getInstance())); return value; }
visitLibraryOrderEntry
252,601
List<VirtualFile> (@NotNull final JdkOrderEntry orderEntry, final List<VirtualFile> value) { Collections.addAll(value, orderEntry.getRootFiles(getInstance())); return value; }
visitJdkOrderEntry
252,602
List<VirtualFile> (@NotNull ModuleSourceOrderEntry orderEntry, List<VirtualFile> value) { JavaModuleExternalPaths moduleExtension = orderEntry.getRootModel().getModuleExtension(JavaModuleExternalPaths.class); if (moduleExtension != null) { Collections.addAll(value, moduleExtension.getExternalAnnotationsRoots()); } retu...
visitModuleSourceOrderEntry
252,603
List<String> (@NotNull OrderEntry entry) { List<String> result = new ArrayList<>(); RootPolicy<List<String>> policy = new RootPolicy<>() { @Override public List<String> visitLibraryOrderEntry(@NotNull final LibraryOrderEntry orderEntry, final List<String> value) { Collections.addAll(value, orderEntry.getRootUrls(getIns...
getUrls
252,604
List<String> (@NotNull final LibraryOrderEntry orderEntry, final List<String> value) { Collections.addAll(value, orderEntry.getRootUrls(getInstance())); return value; }
visitLibraryOrderEntry
252,605
List<String> (@NotNull final JdkOrderEntry orderEntry, final List<String> value) { Collections.addAll(value, orderEntry.getRootUrls(getInstance())); return value; }
visitJdkOrderEntry
252,606
List<String> (@NotNull ModuleSourceOrderEntry orderEntry, List<String> value) { Collections.addAll(value, orderEntry.getRootModel().getModuleExtension(JavaModuleExternalPaths.class).getExternalAnnotationsUrls()); return value; }
visitModuleSourceOrderEntry
252,607
OrderRootType () { return getOrderRootType(JavadocOrderRootType.class); }
getInstance
252,608
List<String> (@NotNull final LibraryOrderEntry orderEntry, final List<String> value) { Collections.addAll(value, orderEntry.getRootUrls(JavadocOrderRootType.this)); return value; }
visitLibraryOrderEntry
252,609
List<String> (@NotNull final JdkOrderEntry orderEntry, final List<String> value) { Collections.addAll(value, orderEntry.getRootUrls(JavadocOrderRootType.this)); return value; }
visitJdkOrderEntry
252,610
List<String> (@NotNull final ModuleSourceOrderEntry orderEntry, final List<String> value) { Collections.addAll(value, orderEntry.getRootModel().getModuleExtension(JavaModuleExternalPaths.class).getJavadocUrls()); return value; }
visitModuleSourceOrderEntry
252,611
void (@Nullable Sdk sdk) { }
projectSdkChanged
252,612
void (@NotNull Element element) { throw new UnsupportedOperationException(); }
readExternal
252,613
boolean (@NotNull Element element) { readExternal(element); return true; }
readExternalElement
252,614
Object () { return null; }
getState
252,615
void (@NotNull Object state) { }
loadState
252,616
boolean (Object obj) { return obj instanceof DummyLibraryProperties; }
equals
252,617
int () { return 0; }
hashCode
252,618
void (@NotNull RootSetChangedListener listener) { myDispatcher.addListener(listener); }
addRootSetChangedListener
252,619
void (@NotNull RootSetChangedListener listener) { myDispatcher.removeListener(listener); }
removeRootSetChangedListener
252,620
void (@NotNull RootSetChangedListener listener, @NotNull Disposable parentDisposable) { myDispatcher.addListener(listener, parentDisposable); }
addRootSetChangedListener
252,621
void () { myDispatcher.getMulticaster().rootSetChanged(this); }
fireRootSetChanged
252,622
boolean (@NotNull final VirtualFile file) { return myFileIndex.isInContent(file); }
isInContent
252,623
boolean (@NotNull VirtualFile file) { return myFileIndex.isInSource(file); }
isInSource
252,624
boolean (@NotNull VirtualFile file) { return myFileIndex.isInSourceContent(file); }
isInSourceContent
252,625
boolean (@NotNull VirtualFile file) { return myFileIndex.isInLibrary(file); }
isInLibrary
252,626
boolean (@NotNull VirtualFile file) { return myFileIndex.isInLibraryClasses(file); }
isInLibraryClasses
252,627
boolean (@NotNull VirtualFile file) { return myFileIndex.isInLibrarySource(file); }
isInLibrarySource
252,628
boolean (@NotNull final VirtualFile file) { return myFileIndex.isExcluded(file); }
isExcludedFile
252,629
boolean (@NotNull VirtualFile file) { return myFileIndex.isUnderIgnored(file); }
isUnderIgnored
252,630
Module (@NotNull VirtualFile file) { return myFileIndex.getModuleForFile(file); }
getModuleForFile
252,631
boolean (@NotNull final VirtualFile baseDir, @NotNull VirtualFile childDir) { if (!childDir.isDirectory()) { childDir = childDir.getParent(); } ProjectFileIndex fileIndex = ProjectFileIndex.getInstance(myProject); while (true) { if (childDir == null) return false; if (childDir.equals(baseDir)) return true; if (!fileInd...
isValidAncestor
252,632
ModificationTracker () { return ProjectRootManager.getInstance(myProject); }
getRootModificationTracker
252,633
Collection<UnloadedModuleDescription> () { return ModuleManager.getInstance(myProject).getUnloadedModuleDescriptions(); }
getUnloadedModuleDescriptions
252,634
boolean (@NotNull VirtualFile file) { // optimization: equivalent to the super method but has fewer getInfoForFile() calls WorkspaceFileInternalInfo fileInfo = myWorkspaceFileIndex.getFileInfo(file, true, true, true, false, false); if (fileInfo instanceof WorkspaceFileInternalInfo.NonWorkspace) { return false; } if (fi...
isInProjectScope
252,635
boolean (@NotNull ContentIterator processor) { return iterateContent(processor, null); }
iterateContent
252,636
boolean (@NotNull VirtualFile dir, @NotNull ContentIterator processor, @Nullable VirtualFileFilter customFilter) { ContentIteratorEx processorEx = toContentIteratorEx(processor); return myWorkspaceFileIndex.processContentFilesRecursively(dir, processorEx, customFilter, fileSet -> !isScopeDisposed() && isInContent(fileS...
iterateContentUnderDirectory
252,637
ContentIteratorEx (@NotNull ContentIterator processor) { if (processor instanceof ContentIteratorEx) { return (ContentIteratorEx)processor; } return fileOrDir -> processor.processFile(fileOrDir) ? TreeNodeProcessingResult.CONTINUE : TreeNodeProcessingResult.STOP; }
toContentIteratorEx
252,638
boolean (@NotNull ContentIterator processor, @Nullable VirtualFileFilter filter, @NotNull Collection<VirtualFile> topLevelRecursiveRoots, @NotNull Collection<VirtualFile> nonRecursiveRoots) { ContentIteratorEx processorEx = toContentIteratorEx(processor); for (VirtualFile root : topLevelRecursiveRoots) { if (!iterateCo...
iterateProvidedRootsOfContent
252,639
boolean (@NotNull VirtualFile dir, @NotNull ContentIterator processor) { return iterateContentUnderDirectory(dir, processor, null); }
iterateContentUnderDirectory
252,640
boolean (@NotNull WorkspaceFileSetWithCustomData<?> fileSet) { return fileSet.getKind().isContent(); }
isInContent
252,641
VirtualFile (@NotNull VirtualFile file, @NotNull Object container, @Nullable Object containerProvider) { if (!ensureValid(file, container, containerProvider)) { return null; } return file; }
correctRoot
252,642
VirtualFile (String url) { return VirtualFileManager.getInstance().findFileByUrl(url); }
findFileByUrl
252,643
VirtualFile (@NotNull VirtualFileUrl virtualFileUrl) { return VirtualFileUrls.getVirtualFile(virtualFileUrl); }
findFile
252,644
boolean (@NotNull VirtualFile file, @NotNull Object container, @Nullable Object containerProvider) { if (!file.isValid()) { if (containerProvider != null) { Class<?> providerClass = containerProvider.getClass(); PluginException.logPluginError(LOG, "Invalid root " + file + " in " + container + " provided by " + provider...
ensureValid
252,645
List<OrderEnumerationHandler> (@NotNull Module module) { List<OrderEnumerationHandler> customHandlers = null; for (OrderEnumerationHandler.Factory handlerFactory : OrderEnumerationHandler.EP_NAME.getExtensionList()) { if (handlerFactory.isApplicable(module)) { if (customHandlers == null) { customHandlers = new SmartLis...
getCustomHandlers
252,646
OrderEnumerator () { myProductionOnly = true; return this; }
productionOnly
252,647
OrderEnumerator () { myCompileOnly = true; return this; }
compileOnly
252,648
OrderEnumerator () { myRuntimeOnly = true; return this; }
runtimeOnly
252,649
OrderEnumerator () { myWithoutJdk = true; return this; }
withoutSdk
252,650
OrderEnumerator () { myWithoutLibraries = true; return this; }
withoutLibraries
252,651
OrderEnumerator () { myWithoutDepModules = true; return this; }
withoutDepModules
252,652
OrderEnumerator () { myWithoutModuleSourceEntries = true; return this; }
withoutModuleSourceEntries
252,653
OrderEnumerator () { myRecursively = true; return this; }
recursively
252,654
OrderEnumerator () { if (myRecursively) { myRecursivelyExportedOnly = true; } else { myExportedOnly = true; } return this; }
exportedOnly
252,655
OrderEnumerator (@NotNull Condition<? super OrderEntry> condition) { myCondition = condition; return this; }
satisfying
252,656
OrderEnumerator (@NotNull RootModelProvider provider) { myModulesProvider = provider; return this; }
using
252,657
OrderRootsEnumerator () { return new OrderRootsEnumeratorImpl(this, OrderRootType.CLASSES); }
classes
252,658
OrderRootsEnumerator () { return new OrderRootsEnumeratorImpl(this, OrderRootType.SOURCES); }
sources
252,659
OrderRootsEnumerator (@NotNull OrderRootType rootType) { return new OrderRootsEnumeratorImpl(this, rootType); }
roots
252,660
OrderRootsEnumerator (@NotNull NotNullFunction<? super OrderEntry, ? extends OrderRootType> rootTypeProvider) { return new OrderRootsEnumeratorImpl(this, rootTypeProvider); }
roots
252,661
int () { int flags = 0; if (myProductionOnly) flags |= 1; flags <<= 1; if (myCompileOnly) flags |= 1; flags <<= 1; if (myRuntimeOnly) flags |= 1; flags <<= 1; if (myWithoutJdk) flags |= 1; flags <<= 1; if (myWithoutLibraries) flags |= 1; flags <<= 1; if (myWithoutDepModules) flags |= 1; flags <<= 1; if (myWithoutModule...
getFlags
252,662
boolean (@NotNull ModuleOrderEntry entry, @NotNull List<? extends OrderEnumerationHandler> handlers) { ProcessEntryAction action = shouldAddOrRecurse(entry, true, handlers); return action.type == ProcessEntryActionType.RECURSE; }
shouldRecurse
252,663
ProcessEntryAction (@NotNull Module module) { ProcessEntryAction result = new ProcessEntryAction(ProcessEntryActionType.RECURSE); result.recurseOnModule = module; return result; }
RECURSE
252,664
ProcessEntryAction (@NotNull OrderEntry entry, boolean firstLevel, @NotNull List<? extends OrderEnumerationHandler> customHandlers) { if (myCondition != null && !myCondition.value(entry)) return ProcessEntryAction.SKIP; if (entry instanceof JdkOrderEntry && (myWithoutJdk || !firstLevel)) return ProcessEntryAction.SKIP;...
shouldAddOrRecurse
252,665
void (@NotNull ModuleRootModel rootModel, @Nullable Set<? super Module> processed, boolean firstLevel, @NotNull List<? extends OrderEnumerationHandler> customHandlers, @NotNull PairProcessor<? super OrderEntry, ? super List<? extends OrderEnumerationHandler>> processor) { ProgressManager.checkCanceled(); if (processed ...
processEntries
252,666
boolean (@NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { if (handler.shouldAddRuntimeDependenciesToTestCompilationClasspath()) { return true; } } return false; }
shouldAddRuntimeDependenciesToTestCompilationClasspath
252,667
boolean (@NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { if (!handler.shouldProcessDependenciesRecursively()) { return false; } } return true; }
shouldProcessRecursively
252,668
void (@NotNull final Processor<? super OrderEntry> processor) { forEach((entry, __) -> processor.process(entry)); }
forEach
252,669
void (@NotNull final Processor<? super Library> processor) { forEach((entry, __) -> { if (entry instanceof LibraryOrderEntry) { final Library library = ((LibraryOrderEntry)entry).getLibrary(); if (library != null) { return processor.process(library); } } return true; }); }
forEachLibrary
252,670
void (@NotNull final Processor<? super Module> processor) { forEach((orderEntry, customHandlers) -> { if (myRecursively && orderEntry instanceof ModuleSourceOrderEntry) { final Module module = ((ModuleSourceOrderEntry)orderEntry).getRootModel().getModule(); return processor.process(module); } if (orderEntry instanceof ...
forEachModule
252,671
boolean (@NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { if (!handler.shouldIncludeTestsFromDependentModulesToTestClasspath()) { return false; } } return true; }
shouldIncludeTestsFromDependentModulesToTestClasspath
252,672
boolean (@NotNull LibraryOrSdkOrderEntry forOrderEntry, @NotNull OrderRootType type, @NotNull Collection<? super VirtualFile> result, @NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { final List<String> urls = new ArrayList<>(); final boolean add...
addCustomRootsForLibraryOrSdk
252,673
boolean (@NotNull LibraryOrSdkOrderEntry forOrderEntry, @NotNull OrderRootType type, @NotNull Collection<? super String> result, @NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { final List<String> urls = new ArrayList<>(); final boolean added = ...
addCustomRootUrlsForLibraryOrSdk
252,674
boolean (@NotNull OrderRootType type, @NotNull ModuleRootModel rootModel, @NotNull Collection<? super VirtualFile> result, boolean includeProduction, boolean includeTests, @NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { final List<String> urls ...
addCustomRootsForModule
252,675
void (@NotNull OrderRootType type, @NotNull ModuleRootModel rootModel, @NotNull Collection<String> result, boolean includeProduction, boolean includeTests, @NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { handler.addCustomModuleRoots(type, rootM...
addCustomRootsUrlsForModule
252,676
boolean () { return myRuntimeOnly; }
isRuntimeOnly
252,677
boolean () { return myCompileOnly; }
isCompileOnly
252,678
boolean () { return myProductionOnly; }
isProductionOnly
252,679
boolean (@NotNull ModuleRootModel rootModel) { return false; }
isRootModuleModel
252,680
boolean (OrderEntry orderEntry, List<? extends OrderEnumerationHandler> __) { myValue = orderEntry.accept(myPolicy, myValue); return true; }
process
252,681
void (@NotNull Processor<? super Module> processor) { for (Module each : myModules) { processor.process(each); } }
processRootModules
252,682
void (@NotNull PairProcessor<? super OrderEntry, ? super List<? extends OrderEnumerationHandler>> processor) { myRecursivelyExportedOnly = false; Set<Module> processed = new HashSet<>(); for (Module module : myModules) { processEntries(getRootModel(module), processed, true, getCustomHandlers(module), processor); } }
forEach
252,683
boolean (@NotNull ModuleRootModel rootModel) { return myModules.contains(rootModel.getModule()); }
isRootModuleModel
252,684
ModifiableModelCommitterService (Project project) { return project.getService(ModifiableModelCommitterService.class); }
getInstance
252,685
LibraryOrderEntry (@NotNull ModuleRootModel model, @Nullable Library library) { if (library == null) return null; for (OrderEntry orderEntry : model.getOrderEntries()) { if (orderEntry instanceof LibraryOrderEntry && library.equals(((LibraryOrderEntry)orderEntry).getLibrary())) { return (LibraryOrderEntry)orderEntry; }...
findLibraryOrderEntry
252,686
LibraryOrderEntry (@NotNull ModuleRootModel model, @NotNull String libraryName) { for (OrderEntry orderEntry : model.getOrderEntries()) { if (orderEntry instanceof LibraryOrderEntry) { final String libName = ((LibraryOrderEntry)orderEntry).getLibraryName(); if (libraryName.equals(libName)) { return (LibraryOrderEntry)o...
findLibraryOrderEntry
252,687
ModuleOrderEntry (@NotNull ModuleRootModel model, @Nullable Module module) { if (module == null) return null; for (OrderEntry orderEntry : model.getOrderEntries()) { if (orderEntry instanceof ModuleOrderEntry && module.equals(((ModuleOrderEntry)orderEntry).getModule())) { return (ModuleOrderEntry)orderEntry; } } return...
findModuleOrderEntry
252,688
JdkOrderEntry (@NotNull ModuleRootModel model, @Nullable Sdk sdk) { if (sdk == null) return null; for (OrderEntry orderEntry : model.getOrderEntries()) { if (orderEntry instanceof JdkOrderEntry && sdk.equals(((JdkOrderEntry)orderEntry).getJdk())) { return (JdkOrderEntry)orderEntry; } } return null; }
findJdkOrderEntry
252,689
boolean (OrderEntry orderEntry1, OrderEntry orderEntry2) { if (orderEntry1 instanceof JdkOrderEntry && orderEntry2 instanceof JdkOrderEntry) { final JdkOrderEntry jdkOrderEntry1 = (JdkOrderEntry)orderEntry1; final JdkOrderEntry jdkOrderEntry2 = (JdkOrderEntry)orderEntry2; return Comparing.equal(jdkOrderEntry1.getJdk(),...
equals
252,690
boolean (Library library1, Library library2) { if (library1 == library2) return true; if (library1 == null || library2 == null) return false; final LibraryTable table = library1.getTable(); if (table != null) { if (library2.getTable() != table) return false; final String name = library1.getName(); return name != null &...
equals
252,691
void (@NotNull LibraryOrderEntry libraryOrderEntry, @NotNull Module module) { Library library = libraryOrderEntry.getLibrary(); if (library == null) return; addLibraryToRoots(module, library); }
addLibraryToRoots
252,692
void (@NotNull Module module, @NotNull Library library) { addLibraryToRoots(module, library, DependencyScope.COMPILE, false); }
addLibraryToRoots
252,693
void (@NotNull Module module, @NotNull Library library, @NotNull DependencyScope scope, boolean exported) { final ModifiableRootModel rootModel = ModuleRootManager.getInstance(module).getModifiableModel(); final LibraryOrderEntry entry; if (library.getTable() == null) { final Library jarLibrary = rootModel.getModuleLib...
addLibraryToRoots
252,694
int (OrderEntry @NotNull [] entries, @NotNull Library library) { for (int i = 0; i < entries.length; i++) { OrderEntry entry = entries[i]; if (entry instanceof LibraryOrderEntry && library.equals(((LibraryOrderEntry)entry).getLibrary())) { return i; } } return -1; }
findLibraryOrderEntry
252,695
void (@NotNull ModifiableRootModel model, @NotNull Library oldLibrary, @NotNull Library newLibrary) { int i = findLibraryOrderEntry(model.getOrderEntries(), oldLibrary); if (i == -1) return; model.addLibraryEntry(newLibrary); replaceLibraryByAdded(model, i); }
replaceLibrary
252,696
void (@NotNull ModifiableRootModel model, @NotNull LibraryOrderEntry entry) { int i = ArrayUtil.indexOf(model.getOrderEntries(), entry); if (i == -1) return; replaceLibraryByAdded(model, i); }
replaceLibraryEntryByAdded
252,697
void (@NotNull ModifiableRootModel model, int toReplace) { OrderEntry[] entries = model.getOrderEntries(); LibraryOrderEntry newEntry = (LibraryOrderEntry)entries[entries.length - 1]; LibraryOrderEntry libraryEntry = (LibraryOrderEntry)entries[toReplace]; boolean exported = libraryEntry.isExported(); DependencyScope sc...
replaceLibraryByAdded
252,698
DependencyScope (@NotNull DependencyScope scope1, @NotNull DependencyScope scope2) { if (scope1 == scope2) return scope1; if (scope1 == DependencyScope.COMPILE) return scope2; if (scope2 == DependencyScope.COMPILE) return scope1; if (scope1 == DependencyScope.TEST || scope2 == DependencyScope.TEST) return DependencySco...
intersectScopes
252,699
List<Library> (@NotNull ModuleRootModel model) { OrderEntry[] orderEntries = model.getOrderEntries(); List<Library> libraries = new ArrayList<>(); for (OrderEntry orderEntry : orderEntries) { if (orderEntry instanceof LibraryOrderEntry entry) { if (entry.isModuleLevel()) { libraries.add(entry.getLibrary()); } } } retur...
getModuleLibraries