Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
62,500
void () { doTest(CONVERT_TO_JB_COLOR_CONSTANT_FIX_NAME); }
testUseJBColorConstantStaticImportInVariable
62,501
String () { return "kt"; }
getFileExtension
62,502
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(0, 0, 0, 0)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.empty()") ); }
testSwingEmptyBorderWithFourZeros
62,503
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(1, 1, 1, 1)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.empty(1)") ); }
testSwingEmptyBorderWithFourTheSameValues
62,504
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(1, 2, 1, 2)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.empty(1, 2)") ); }
testSwingEmptyBorderWithFirstThirdAndSecondFourthValuesTheSame
62,505
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(1, 0, 0, 0)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.emptyTop(1)") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentFirstParam
62,506
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(0, 1, 0, 0)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.emptyLeft(1)") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentSecondParam
62,507
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(0, 0, 1, 0)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.emptyBottom(1)") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentThirdParam
62,508
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("val myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">Empty<caret>Border(0, 0, 0, 1)</warning>"), jbuiBorder("val myBorder = JBUI.Borders.emptyRight(1)") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentFourthParam
62,509
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder("val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">e<caret>mpty(0)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.empty()") ); }
testJBUIBordersEmptyWithZero
62,510
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">em<caret>pty(0, 0)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.empty()") ); }
testJBUIBordersEmptyWithTwoZeros
62,511
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">e<caret>mpty(1, 1)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.empty(1)") ); }
testJBUIBordersEmptyWithTopAndBottomEqualToLeftAndRight
62,512
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">em<caret>pty(0, 0, 0, 0)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.empty()") ); }
testJBUIBordersEmptyWithFourZeros
62,513
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">em<caret>pty(1, 1, 1, 1)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.empty(1)") ); }
testJBUIBordersEmptyWithFourTheSameValues
62,514
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">emp<caret>ty(1, 2, 1, 2)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.empty(1, 2)") ); }
testJBUIBordersEmptyWithFirstThirdAndSecondFourthValuesTheSame
62,515
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">emp<caret>ty(1, 0, 0, 0)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.emptyTop(1)") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentFirstParam
62,516
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">em<caret>pty(0, 1, 0, 0)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.emptyLeft(1)") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentSecondParam
62,517
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">emp<caret>ty(0, 0, 1, 0)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.emptyBottom(1)") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentThirdParam
62,518
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "val myBorder = JBUI.Borders.<warning descr=\"Empty border creation can be simplified\">em<caret>pty(0, 0, 0, 1)</warning>"), jbuiEmptyBorder("val myBorder = JBUI.Borders.emptyRight(1)") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentFourthParam
62,519
void () { doTest( SIMPLIFY_FIX_NAME, kotlin(""" import javax.swing.border.Border import com.intellij.util.ui.JBUI.Borders @Suppress("UNUSED_VARIABLE") class TestClass { fun any() { val myBorder = Borders.<warning descr="Empty border creation can be simplified">em<caret>pty(0, 0, 0, 0)</warning>; } } """), kotlin(""" im...
testJBUIBordersEmptyWithFourZerosAndStaticImportForBorders
62,520
void () { doTest( SIMPLIFY_FIX_NAME, kotlin(""" import javax.swing.border.Border import com.intellij.util.ui.JBUI.Borders.empty @Suppress("UNUSED_VARIABLE") class TestClass { fun any() { val myBorder = <warning descr="Empty border creation can be simplified">em<caret>pty(0, 0, 0, 0)</warning>; } } """), kotlin(""" impo...
testJBUIBordersEmptyWithFourZerosAndStaticImportForBordersEmpty
62,521
String (String code) { return """ import javax.swing.border.Border import javax.swing.border.EmptyBorder @Suppress("UNUSED_VARIABLE") class TestClass { fun any() { <code> } } """.replace("<code>", code); }
swingBorder
62,522
String (String code) { return """ import com.intellij.util.ui.JBUI import javax.swing.border.Border import javax.swing.border.EmptyBorder @Suppress("UNUSED_VARIABLE") class TestClass { fun any() { <code> } } """.replace("<code>", code); }
jbuiBorder
62,523
String (String code) { return """ import com.intellij.util.ui.JBUI import javax.swing.border.Border @Suppress("UNUSED_VARIABLE") class TestClass { fun any() { <code> } } """.replace("<code>", code); }
jbuiEmptyBorder
62,524
FileTemplateGroupDescriptor () { FileTemplateGroupDescriptor root = new FileTemplateGroupDescriptor(DevKitBundle.message("module.builder.title"), AllIcons.Nodes.Plugin); FileTemplateGroupDescriptor templatesRoot = new FileTemplateGroupDescriptor(DevKitBundle.message("file.templates"), AllIcons.Nodes.Plugin); templatesR...
getFileTemplatesDescriptor
62,525
String () { return DevKitBundle.message("module.wizard.gradle.plugin.xml.template.display.name"); }
getDisplayName
62,526
boolean (@NotNull Project project, @NotNull String line) { return line.length() > 0 && line.charAt(line.length() - 1) == '\u2003'; // `TestLoggerFactory#FAILED_TEST_DEBUG_OUTPUT_MARKER` }
shouldFoldLine
62,527
String (@NotNull Project project, @NotNull List<String> lines) { return " <DEBUG log>"; }
getPlaceholderText
62,528
Collection<ProjectType> (@NotNull Project project) { if (isPluginProject(project)) { return singletonList(new ProjectType(IDE_PLUGIN_PROJECT)); } return emptyList(); }
inferProjectTypes
62,529
String[] () { return new String[]{"/spellchecker/devkit.dic"}; }
getBundledDictionaries
62,530
boolean (@NotNull PsiClass psiClass) { if (psiClass instanceof PsiTypeParameter || psiClass.hasModifierProperty(PsiModifier.PRIVATE) || psiClass.hasModifierProperty(PsiModifier.ABSTRACT)) { return false; } if (psiClass.getContainingClass() != null && !psiClass.hasModifierProperty(PsiModifier.STATIC)) { return false; } ...
isInstantiable
62,531
PsiMethod (String name, @Nullable PsiClass cls) { if (cls == null) return null; for (PsiMethod method : cls.findMethodsByName(name, false)) { if (method.getParameterList().isEmpty()) { return method.getModifierList().hasModifierProperty(PsiModifier.ABSTRACT) ? null : method; } } return findNearestMethod(name, cls.getSu...
findNearestMethod
62,532
PsiAnnotation (final Class<?> annotationClass, PsiMember... members) { for (PsiMember member : members) { if (member == null) continue; final PsiAnnotation annotation = member.getAnnotation(annotationClass.getName()); if (annotation != null) return annotation; } return null; }
findAnnotation
62,533
String (final PsiAnnotation annotation, final String name, String defaultValueIfEmpty) { final String value = AnnotationUtil.getDeclaredStringAttributeValue(annotation, name); return StringUtil.defaultIfEmpty(value, defaultValueIfEmpty); }
getAnnotationStringAttribute
62,534
boolean (final PsiAnnotation annotation, final String name) { return ObjectUtils.notNull(AnnotationUtil.getBooleanAttributeValue(annotation, name), Boolean.FALSE); }
getAnnotationBooleanAttribute
62,535
boolean (@Nullable Project project) { if (project == null) { return false; } Boolean flag = project.getUserData(IDEA_PROJECT); if (flag == null) { flag = checkIdeaProject(project); project.putUserData(IDEA_PROJECT, flag); } return flag; }
isIdeaProject
62,536
UExpression (PsiMethod method) { UMethod uMethod = UastContextKt.toUElement(method, UMethod.class); if (uMethod == null) return null; final UExpression uBody = uMethod.getUastBody(); if (!(uBody instanceof UBlockExpression)) return null; final List<UExpression> expressions = ((UBlockExpression)uBody).getExpressions(); ...
getReturnedExpression
62,537
boolean (@NotNull final Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { boolean foundMarkerClass = JavaPsiFacade.getInstance(project).findClass(IDE_PROJECT_MARKER_CLASS, GlobalSearchScope.allScope(project)) != null; return Result.createSingleDependency(foundMarkerClass,...
isPluginProject
62,538
boolean (@NotNull final Module module) { return CachedValuesManager.getManager(module.getProject()).getCachedValue(module, () -> { boolean foundMarkerClass = JavaPsiFacade.getInstance(module.getProject()) .findClass(IDE_PROJECT_MARKER_CLASS, GlobalSearchScope.moduleRuntimeScope(module, false)) != null; return Result.cr...
isPluginModule
62,539
void (@NotNull Project project, boolean value) { project.putUserData(IDEA_PROJECT, value); }
markAsIdeaProject
62,540
boolean (@NotNull Project project) { for (String moduleName : IDEA_PROJECT_MARKER_MODULE_NAMES) { if (ModuleManager.getInstance(project).findModuleByName(moduleName) != null) { return true; } } return false; }
checkIdeaProject
62,541
boolean (@NotNull PsiElement element) { return isPluginProject(element.getProject()) && DescriptorUtil.isPluginXml(element.getContainingFile()); }
isPluginXmlPsiElement
62,542
boolean (String path) { for (String file : IDEA_PROJECT_MARKER_FILES) { if (new File(path, file).isFile()) return true; } return false; }
isPathToIntelliJIdeaSources
62,543
GlobalSearchScope (@NotNull Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { GlobalSearchScope scope = GlobalSearchScopesCore.projectProductionScope(project) .uniteWith(LibraryScopeCache.getInstance(project).getLibrariesOnlyScope()); Collection<VirtualFile> candidates = ...
getCandidatesScope
62,544
boolean (PsiClass klass) { final PsiClass psiClass = JavaPsiFacade.getInstance(klass.getProject()).findClass(myClassName, klass.getResolveScope()); return psiClass != null && klass.isInheritor(psiClass, true); }
isOfType
62,545
void (XmlTag rootTag, Processor processor) { for (XmlTag actionsTag : rootTag.findSubTags("actions")) { if (!actionsTag.isPhysical()) continue; final XmlTag[] actionOrGroupTags = actionsTag.getSubTags(); processRecursively(processor, actionOrGroupTags); } }
process
62,546
boolean (Processor processor, XmlTag[] tags) { for (XmlTag tag : tags) { if (myName.equals(tag.getName())) { if (!processor.process(this, tag)) { return false; } } if (GROUP.myName.equals(tag.getName())) { if (this == ACTION && !processRecursively(processor, tag.findSubTags(ACTION.myName))) return false; if (!processRe...
processRecursively
62,547
void (XmlTag root, ComponentType.Processor processor) { final ComponentType[] types = ComponentType.values(); for (ComponentType type : types) { type.process(root, processor); } }
processComponents
62,548
void (XmlTag root, ActionType.Processor processor) { final ActionType[] types = ActionType.values(); for (ActionType type : types) { type.process(root, processor); } }
processActions
62,549
void (Project project, XmlFile pluginXml) { VirtualFile file = pluginXml.getVirtualFile(); final ReadonlyStatusHandler readonlyStatusHandler = ReadonlyStatusHandler.getInstance(project); final ReadonlyStatusHandler.OperationStatus status = readonlyStatusHandler.ensureFilesWritable(Collections.singletonList(file)); if (...
checkPluginXmlsWritable
62,550
List<String> (Module module) { XmlFile xml = PluginModuleType.getPluginXml(module); if (xml == null) return Collections.emptyList(); IdeaPlugin plugin = getIdeaPlugin(xml); if (plugin == null) return Collections.emptyList(); List<String> result = new ArrayList<>(); ContainerUtil.addIfNotNull(result, plugin.getPluginId(...
getPluginAndOptionalDependenciesIds
62,551
boolean (@Nullable PsiFile file) { if (!(file instanceof XmlFile)) return false; return getIdeaPluginFileElement((XmlFile)file) != null; }
isPluginXml
62,552
DomFileElement<IdeaPlugin> (@NotNull XmlFile file) { return DomManager.getDomManager(file.getProject()).getFileElement(file, IdeaPlugin.class); }
getIdeaPluginFileElement
62,553
IdeaPlugin (@NotNull XmlFile file) { final DomFileElement<IdeaPlugin> plugin = getIdeaPluginFileElement(file); return plugin != null ? plugin.getRootElement() : null; }
getIdeaPlugin
62,554
Collection<IdeaPlugin> (Project project, GlobalSearchScope scope) { if (DumbService.isDumb(project)) return Collections.emptyList(); List<DomFileElement<IdeaPlugin>> files = DomService.getInstance().getFileElements(IdeaPlugin.class, project, scope); return ContainerUtil.map(files, ideaPluginDomFileElement -> ideaPlugin...
getPlugins
62,555
PlatformResolveStatus () { return myPlatformResolveStatus; }
getResolveStatus
62,556
IdeaPlugin () { return myMainIdeaPlugin; }
getMainIdeaPlugin
62,557
BuildNumber () { return mySinceBuildNumber; }
getSinceBuildNumber
62,558
PluginPlatformInfo (@NotNull DomElement pluginXmlDomElement) { Module module = pluginXmlDomElement.getModule(); if (module == null) { return UNRESOLVED_INSTANCE; } boolean isDevkitModule = PluginModuleType.isPluginModuleOrDependency(module); if (!isDevkitModule) { return forModule(module); } IdeaPlugin plugin = DomUtil...
forDomElement
62,559
PluginPlatformInfo (@NotNull Module module) { return CachedValuesManager.getManager(module.getProject()) .getCachedValue(module, () -> Result.createSingleDependency(_forModule(module), JavaLibraryModificationTracker.getInstance(module.getProject()))); }
forModule
62,560
PluginPlatformInfo (@NotNull Module module) { final PsiClass markerClass = JavaPsiFacade.getInstance(module.getProject()) .findClass(JBList.class.getName(), GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module, false)); if (markerClass == null) { return UNRESOLVED_INSTANCE; } final OrderEntry entry = Librar...
_forModule
62,561
String () { return epName; }
toString
62,562
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExtensionPointCandidate candidate = (ExtensionPointCandidate)o; if (!Objects.equals(epName, candidate.epName)) return false; if (!Objects.equals(attributeName, candidate.attributeName)) return false; if (!Objects...
equals
62,563
int () { int result = epName != null ? epName.hashCode() : 0; result = 31 * result + (attributeName != null ? attributeName.hashCode() : 0); result = 31 * result + (tagName != null ? tagName.hashCode() : 0); result = 31 * result + (beanClassName != null ? beanClassName.hashCode() : 0); return result; }
hashCode
62,564
void (XmlTag rootTag, Processor processor) { final XmlTag[] compGroup = rootTag.findSubTags(myName); for (XmlTag tag : compGroup) { if (!tag.isPhysical()) continue; //skip included tags final XmlTag[] components = tag.findSubTags("component"); for (XmlTag component : components) { final XmlTag impl = component.findFirs...
process
62,565
boolean (@Nullable Actions actions) { if (actions == null) return false; final Module module = actions.getModule(); if (module == null) return false; if (PsiUtil.isIdeaProject(module.getProject()) && (module.getName().startsWith("intellij.platform.") || ApplicationManager.getApplication().isUnitTestMode())) { return tr...
canFallbackToCoreActionsBundle
62,566
Set<ExtensionPointCandidate> () { Set<ExtensionPointCandidate> candidates = new HashSet<>(); findExtensionPointCandidates(myPsiClass, candidates); return candidates; }
findDirectCandidates
62,567
Set<ExtensionPointCandidate> () { Set<ExtensionPointCandidate> candidates = new HashSet<>(); findExtensionPointCandidatesInHierarchy(myPsiClass, candidates, new HashSet<>()); return candidates; }
findSuperCandidates
62,568
void (PsiClass psiClass, Set<? super ExtensionPointCandidate> candidates, HashSet<? super PsiClass> processed) { for (PsiClass superClass : psiClass.getSupers()) { if (!processed.add(superClass) || CommonClassNames.JAVA_LANG_OBJECT.equals(superClass.getQualifiedName())) { continue; } findExtensionPointCandidates(superC...
findExtensionPointCandidatesInHierarchy
62,569
void (PsiClass psiClass, Set<? super ExtensionPointCandidate> candidates) { final Project project = psiClass.getProject(); final SmartPointerManager instance = SmartPointerManager.getInstance(project); final List<ExtensionPoint> extensionPoints = ExtensionPointClassIndex.getExtensionPointsByClass(project, psiClass, Plu...
findExtensionPointCandidates
62,570
void (@NotNull PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider(getPattern(), new XIncludeReferenceProvider(), PsiReferenceRegistrar.HIGHER_PRIORITY); }
registerReferenceProviders
62,571
XmlAttributeValuePattern () { return XmlPatterns.xmlAttributeValue().withLocalName("href") .withSuperParent(2, XmlPatterns.xmlTag().withLocalName("include").withNamespace(XmlUtil.XINCLUDE_URI)) .with(new PatternCondition<>("XInclude inside plugin.xml") { @Override public boolean accepts(@NotNull XmlAttributeValue value...
getPattern
62,572
boolean (@NotNull XmlAttributeValue value, ProcessingContext context) { return PsiUtil.isPluginXmlPsiElement(value); }
accepts
62,573
Condition<PsiFileSystemItem> () { return item -> DescriptorUtil.isPluginXml(item.getContainingFile()) && !file.equals(item); }
getReferenceCompletionFilter
62,574
GenericAttributeValue<String> (Extension extension) { return extension.getId(); }
getNameElement
62,575
PsiElement () { final String resolveId = getResolveValue(); if (StringUtil.isEmptyOrSpaces(resolveId)) return null; final CommonProcessors.FindProcessor<Extension> resolveProcessor = new CommonProcessors.FindFirstProcessor<>(); processCandidates(resolveProcessor, resolveId); final Extension value = resolveProcessor.get...
resolve
62,576
String (Extension extension, String attributeName) { final GenericAttributeValue attribute = getAttribute(extension, attributeName); return attribute == null ? null : attribute.getStringValue(); }
getAttributeValue
62,577
void (Processor<? super Extension> processor) { processCandidates(processor, null); }
processCandidates
62,578
void (Processor<? super Extension> processor, @Nullable String extensionPointId) { final Project project = myElement.getProject(); final ExtensionPoint extensionPointDomElement = ExtensionPointIndex.findExtensionPoint(project, PluginRelatedLocatorsUtils.getCandidatesScope(project), getExtensionPointFqn()); if (extensio...
processCandidates
62,579
void (@NotNull PsiReferenceRegistrar registrar) { UastReferenceRegistrar .registerUastReferenceProvider(registrar, injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .methodCallParameter(0, psiMethod() .withName(string().oneOf("get", "is", "intValue", "doubleValue", "stringVal...
registerReferenceProviders
62,580
boolean (@NotNull PsiElement target) { return PropertyReferenceBase.isPropertyPsi(target); }
acceptsTarget
62,581
String () { return "com.intellij.registryKey"; }
getExtensionPointFqn
62,582
String () { return DevKitBundle.message("code.convert.registry.key.cannot.resolve", getValue()); }
getUnresolvedMessagePattern
62,583
PsiElement () { final PropertiesFile file = getRegistryPropertiesFile(); if (file != null) { final IProperty propertyKey = file.findPropertyByKey(getValue()); if (propertyKey != null) { return propertyKey.getPsiElement(); } } return super.resolve(); }
resolve
62,584
String (String description) { return StringUtil.strip(description, ch -> ch != '\n' && ch != '\r'); }
cleanupDescription
62,585
PropertiesFile () { Module module = ModuleUtilCore.findModuleForPsiElement(getElement()); if (module == null) return null; final PropertiesReferenceManager propertiesReferenceManager = PropertiesReferenceManager.getInstance(myElement.getProject()); return ContainerUtil.getFirstItem(propertiesReferenceManager.findProper...
getRegistryPropertiesFile
62,586
boolean (@NotNull PsiElement target) { return target instanceof PsiFile && PropertiesImplUtil.isPropertiesFile((PsiFile)target); }
acceptsTarget
62,587
String () { return DevKitBundle.message("plugin.xml.convert.property.bundle.cannot.resolve"); }
getUnresolvedMessagePattern
62,588
void (@NotNull PsiReferenceRegistrar registrar) { registerUastReferenceProvider(registrar, injectionHostUExpression() .sourcePsiFilter(psi -> PsiUtil.isPluginProject(psi.getProject())) .andOr( uExpression().constructorParameter(0, Notification.class.getName()), uExpression().methodCallParameter(0, psiMethod().withName(...
registerReferenceProviders
62,589
String () { return "com.intellij.notificationGroup"; }
getExtensionPointFqn
62,590
boolean (@NotNull Project project, @NotNull VirtualFile file) { return !DumbService.isDumb(project) && FileTypeRegistry.getInstance().isFileOfType(file, XmlFileType.INSTANCE) && PsiUtil.isPluginProject(project) && DescriptorUtil.isPluginXml(PsiManager.getInstance(project).findFile(file)); }
isMine
62,591
Collection<PsiFileSystemItem> (@NotNull Project project, @NotNull VirtualFile file) { return getRootsContainingPluginXmlFiles(project); }
getContexts
62,592
Collection<PsiFileSystemItem> (@NotNull Module module) { return getRootsContainingPluginXmlFiles(module.getProject()); }
getRoots
62,593
Collection<PsiFileSystemItem> (@NotNull Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { Collection<VirtualFile> pluginXmlFilesInProductionScope = DomService.getInstance().getDomFileCandidates(IdeaPlugin.class, PluginRelatedLocatorsUtils.getCandidatesScope(project)); Pro...
getRootsContainingPluginXmlFiles
62,594
void (@NotNull PsiReferenceRegistrar registrar) { registrar.registerReferenceProvider( PlatformPatterns.psiElement(PropertyKeyImpl.class).inVirtualFile(bundleFile()), new PsiReferenceProvider() { @Override public PsiReference @NotNull [] getReferencesByElement(@NotNull PsiElement element, @NotNull ProcessingContext con...
registerReferenceProviders
62,595
PsiReference (@NotNull PsiElement element, String text) { if (!isActionOrGroupKey(text)) return null; final int dotAfterPrefix = text.indexOf('.'); if (dotAfterPrefix == -1) return null; final int prefixEndIdx = dotAfterPrefix + 1; final int dotBeforeSuffix = text.lastIndexOf('.'); if (dotBeforeSuffix == -1) return nul...
createActionOrGroupIdReference
62,596
PsiReference (@NotNull PsiElement element, String text) { if (!isToolwindowKey(text)) return null; String id = StringUtil.notNullize(StringUtil.substringAfter(text, TOOLWINDOW_STRIPE_PREFIX)).replace('_', ' '); return new ToolwindowIdReference(element, id); }
createToolwindowIdReference
62,597
PsiReference (@NotNull PsiElement element, String text) { if (!isExportableKey(text)) return null; String id = text.replace(EXPORTABLE_PREFIX, "").replace(EXPORTABLE_SUFFIX, ""); return new ExportableIdReference(element, id); }
createExportableIdReference
62,598
PsiReference (@NotNull PsiElement element, String text) { if (!isPluginDescriptionKey(text)) return null; String id = StringUtil.substringAfter(StringUtil.notNullize(StringUtil.substringBefore(text, DESCRIPTION)), PLUGIN); return new PluginIdReference(element, id); }
createPluginIdReference
62,599
PsiReference (@NotNull PsiElement element, String text) { if (!isAdvancedSettingKey(text)) return null; String s = StringUtil.notNullize(StringUtil.substringAfter(text, ADVANCED_SETTING)); String id = s.endsWith(DESCRIPTION) ? StringUtil.trimEnd(s, DESCRIPTION) : (s.endsWith(TRAILING_LABEL) ? StringUtil.trimEnd(s, TRAI...
createAdvancedSettingReference