Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
30,500 | void (@NotNull GrForStatement forStatement) { if (myChild == forStatement.getBody() && !TokenSets.BLOCK_SET.contains(myChildType)) { myResult = getNormalIndent(); } else if (myChild == forStatement.getClause()) { myResult = getContinuationWithoutFirstIndent(); } } | visitForStatement |
30,501 | CommonCodeStyleSettings () { return myBlock.getContext().getSettings(); } | getGroovySettings |
30,502 | void (@NotNull GrParenthesizedExpression expression) { if (myChildType == GroovyTokenTypes.mLPAREN || myChildType == GroovyTokenTypes.mRPAREN) { myResult = getNoneIndent(); } else { myResult = getContinuationIndent(); } } | visitParenthesizedExpression |
30,503 | Indent (@NotNull CommonCodeStyleSettings settings) { if (settings.INDENT_CASE_FROM_SWITCH) { return getIndentInBlock(settings.BRACE_STYLE); } else { return getNoneIndent(); } } | getSwitchCaseIndent |
30,504 | void (@NotNull GrParameterList parameterList) { if (myChildType == T_LPAREN || myChildType == T_RPAREN) { myResult = getNoneIndent(); } else { myResult = getContinuationWithoutFirstIndent(); } } | visitParameterList |
30,505 | void (@NotNull GrArrayDeclaration arrayDeclaration) { myResult = getContinuationWithoutFirstIndent(); } | visitArrayDeclaration |
30,506 | void (@NotNull GrExpression expression) { myResult = getContinuationWithoutFirstIndent(); } | visitExpression |
30,507 | void (@NotNull GrTypeArgumentList typeArgumentList) { myResult = getContinuationWithoutFirstIndent(); } | visitTypeArgumentList |
30,508 | void (@NotNull GrCodeReferenceElement refElement) { myResult = getContinuationWithoutFirstIndent(); } | visitCodeReferenceElement |
30,509 | void (@NotNull GrWildcardTypeArgument wildcardTypeArgument) { myResult = getContinuationWithoutFirstIndent(); } | visitWildcardTypeArgument |
30,510 | void (@NotNull GrAnnotationMethod annotationMethod) { if (myChild instanceof GrAnnotationMemberValue) { myResult = getContinuationIndent(); } else { super.visitAnnotationMethod(annotationMethod); } } | visitAnnotationMethod |
30,511 | void (@NotNull GrAnnotationNameValuePair nameValuePair) { myResult = getContinuationWithoutFirstIndent(); } | visitAnnotationNameValuePair |
30,512 | void (@NotNull GrForInClause forInClause) { myResult = getContinuationWithoutFirstIndent(); } | visitForInClause |
30,513 | void (@NotNull GrForClause forClause) { myResult = getContinuationWithoutFirstIndent(); } | visitForClause |
30,514 | void (@NotNull GrCatchClause catchClause) { if (myChild == catchClause.getBody()) { myResult = getBlockIndent(getGroovySettings().BRACE_STYLE); } else { myResult = getContinuationWithoutFirstIndent(); } } | visitCatchClause |
30,515 | void (@NotNull GrTryCatchStatement tryCatchStatement) { if (myChildType instanceof GrBlockElementType) { myResult = getBlockIndent(getGroovySettings().BRACE_STYLE); } } | visitTryStatement |
30,516 | void (@NotNull GrTryResourceList resourceList) { if (myChildType != T_LPAREN && myChildType != T_RPAREN) { myResult = getContinuationWithoutFirstIndent(); } } | visitTryResourceList |
30,517 | void (@NotNull GrBlockStatement blockStatement) { myResult = getBlockIndent(getGroovySettings().BRACE_STYLE); } | visitBlockStatement |
30,518 | void (@NotNull GrFinallyClause catchClause) { if (myChildType instanceof GrBlockElementType) { myResult = getBlockIndent(getGroovySettings().BRACE_STYLE); } } | visitFinallyClause |
30,519 | void (@NotNull GrTypeParameterList list) { myResult = getContinuationWithoutFirstIndent(); } | visitTypeParameterList |
30,520 | void (@NotNull GrArrayInitializer arrayInitializer) { if (myChildType != T_LBRACE && myChildType != T_RBRACE) { myResult = getContinuationWithoutFirstIndent(); } } | visitArrayInitializer |
30,521 | Indent (int braceStyle) { return braceStyle == NEXT_LINE_SHIFTED ? getNoneIndent() : getNormalIndent(); } | getIndentInBlock |
30,522 | Indent (int braceStyle) { return braceStyle == NEXT_LINE_SHIFTED || braceStyle == NEXT_LINE_SHIFTED2 ? getNormalIndent() : getNoneIndent(); } | getBlockIndent |
30,523 | ChildAttributes (GrCaseSection psiParent, int newIndex) { Indent indent = isFinishedCase(psiParent, newIndex) ? getNoneIndent() : getNormalIndent(); return new ChildAttributes(indent, null); } | getChildSwitchIndent |
30,524 | boolean (GrCaseSection psiParent, int newIndex) { GrStatement[] statements = psiParent.getStatements(); newIndex--; if (psiParent.getArrow() != null && statements.length == 1) { return true; } for (int i = 0; i < statements.length && i < newIndex; i++) { PsiElement child = statements[i]; if (child instanceof GrBreakSta... | isFinishedCase |
30,525 | Wrap (ASTNode childNode) { if (myContext.isForbidWrapping()) return createNoneWrap(); final IElementType childType = childNode.getElementType(); if (SKIP.contains(childType)) { return createNoneWrap(); } if (myParentType == ARGUMENT_LIST) { if (childType == T_LBRACK || childType == T_RBRACK) { return createNoneWrap(); ... | getChildWrap |
30,526 | IElementType (ASTNode node) { ASTNode prev = getLeftSibling(node); return prev != null ? prev.getElementType() : null; } | getLeftSiblingType |
30,527 | ASTNode (ASTNode node) { ASTNode prev = node.getTreePrev(); while (prev != null && StringUtil.isEmptyOrSpaces(prev.getText())) { prev = prev.getTreePrev(); } return prev; } | getLeftSibling |
30,528 | boolean (ASTNode modifierListNode) { final PsiElement psi = modifierListNode.getPsi(); return psi instanceof GrModifierList && psi.getLastChild() instanceof GrAnnotation; } | endsWithAnnotation |
30,529 | Wrap () { if (myCommonWrap == null) { return createNoneWrap(); //return null; } if (myUsedDefaultWrap) { return myCommonWrap; } else { myUsedDefaultWrap = true; return createNoneWrap(); //return null; } } | getCommonWrap |
30,530 | Wrap () { return Wrap.createWrap(WrapType.NORMAL, true); } | createNormalWrap |
30,531 | Wrap () { return Wrap.createWrap(WrapType.NONE, false); } | createNoneWrap |
30,532 | Wrap () { if (myParentType == GroovyStubElementTypes.EXTENDS_CLAUSE || myParentType == GroovyStubElementTypes.IMPLEMENTS_CLAUSE) { myUsedDefaultWrap = true; return Wrap.createWrap(mySettings.EXTENDS_LIST_WRAP, true); } if (myParentType == GroovyStubElementTypes.THROWS_CLAUSE) { myUsedDefaultWrap = true; return Wrap.cre... | createCommonWrap |
30,533 | Wrap () { return myContext.isForbidWrapping() ? Wrap.createWrap(WrapType.NONE, false) : Wrap.createWrap(mySettings.METHOD_CALL_CHAIN_WRAP, false); } | getChainedMethodCallWrap |
30,534 | int (ASTNode modifierList) { final IElementType containerType = modifierList.getTreeParent().getElementType(); if (TokenSets.TYPE_DEFINITIONS.contains(containerType)) { return mySettings.CLASS_ANNOTATION_WRAP; } if (TokenSets.METHOD_DEFS.contains(containerType)) { return mySettings.METHOD_ANNOTATION_WRAP; } if (GroovyS... | getAnnotationsWrapType |
30,535 | Spacing (GroovyBlock child1, GroovyBlock child2, FormattingContext context) { ASTNode leftNode = child1.getNode(); ASTNode rightNode = child2.getNode(); final PsiElement left = leftNode.getPsi(); final PsiElement right = rightNode.getPsi(); IElementType leftType = leftNode.getElementType(); IElementType rightType = rig... | getSpacing |
30,536 | Spacing (FormattingContext context) { return Spacing.createSpacing(0, 0, 1, context.getSettings().KEEP_LINE_BREAKS, context.getSettings().KEEP_BLANK_LINES_IN_CODE); } | getStatementSpacing |
30,537 | Spacing (@NotNull CommonCodeStyleSettings settings, @NotNull GroovyCodeStyleSettings groovySettings, @NotNull GrClosableBlock closure, final boolean forArrow) { boolean spaceWithinBraces = closure.getParent() instanceof GrStringInjection ? groovySettings.SPACE_WITHIN_GSTRING_INJECTION_BRACES : settings.SPACE_WITHIN_BRA... | createDependentSpacingForClosure |
30,538 | boolean (GroovyBlock block) { return block.getNode().getTextRange().equals(block.getTextRange()) || block instanceof MethodCallWithoutQualifierBlock || block instanceof ClosureBodyBlock || block instanceof GrLabelBlock; } | mirrorsAst |
30,539 | PsiClass (@NotNull PsiElement place) { if (place.getLanguage() == GroovyLanguage.INSTANCE) { PsiClass containingClass = PsiTreeUtil.getParentOfType(place, PsiClass.class, false); while (containingClass instanceof PsiTypeParameter) { containingClass = PsiTreeUtil.getParentOfType(containingClass, PsiClass.class); } if (c... | findClass |
30,540 | String () { return "//"; } | getLineCommentPrefix |
30,541 | String () { return "/*"; } | getBlockCommentPrefix |
30,542 | String () { return "*/"; } | getBlockCommentSuffix |
30,543 | String () { return null; } | getCommentedBlockCommentPrefix |
30,544 | String () { return null; } | getCommentedBlockCommentSuffix |
30,545 | IElementType () { return GroovyTokenTypes.mSL_COMMENT; } | getLineCommentTokenType |
30,546 | IElementType () { return GroovyTokenTypes.mML_COMMENT; } | getBlockCommentTokenType |
30,547 | IElementType () { return GroovyDocElementTypes.GROOVY_DOC_COMMENT; } | getDocumentationCommentTokenType |
30,548 | String () { return "/**"; } | getDocumentationCommentPrefix |
30,549 | String () { return "*"; } | getDocumentationCommentLinePrefix |
30,550 | String () { return "*/"; } | getDocumentationCommentSuffix |
30,551 | boolean (PsiComment element) { return element.getText().startsWith(getDocumentationCommentPrefix()); } | isDocumentationComment |
30,552 | boolean (@NotNull IElementType braceType, @Nullable IElementType tokenType) { return tokenType == null || tokenType == TokenType.WHITE_SPACE || tokenType == NL || tokenType == GroovyTokenTypes.mSEMI || tokenType == GroovyTokenTypes.mCOMMA || tokenType == GroovyTokenTypes.mRPAREN || tokenType == GroovyTokenTypes.mRBRACK... | isPairedBracesAllowedBeforeType |
30,553 | int (PsiFile file, int openingBraceOffset) { return openingBraceOffset; } | getCodeConstructStart |
30,554 | Lexer (@NotNull OccurrenceConsumer consumer) { return new GroovyFilterLexer(new GroovyLexer(), consumer); } | createLexer |
30,555 | void (MouseEvent e, PsiElement element) { PsiElement parent = element.getParent(); if (!(parent instanceof GrField field)) return; final List<GrAccessorMethod> accessors = GroovyPropertyUtils.getFieldAccessors(field); final ArrayList<PsiMethod> superMethods = new ArrayList<>(); for (GrAccessorMethod method : accessors)... | browse |
30,556 | void (MouseEvent e, PsiElement element) { PsiElement parent = element.getParent(); if (!(parent instanceof GrField field)) return; if (DumbService.isDumb(element.getProject())) { DumbService.getInstance(element.getProject()).showDumbModeNotificationForFunctionality( GroovyBundle.message("popup.content.navigation.to.ove... | browse |
30,557 | void (MouseEvent e, PsiElement element) { PsiElement parent = element.getParent(); if (!(parent instanceof GrMethod method)) return; Set<PsiMethod> superMethods = collectSuperMethods(method); if (superMethods.isEmpty()) return; PsiElementListNavigator.openTargets(e, superMethods.toArray(PsiMethod.EMPTY_ARRAY), DaemonBu... | browse |
30,558 | boolean (PsiMethod method) { if (method instanceof GrTraitMethod) { return true; } return processor.execute(method); } | processInReadAction |
30,559 | void (MouseEvent e, PsiElement element) { PsiElement parent = element.getParent(); if (!(parent instanceof GrMethod method)) return; if (DumbService.isDumb(element.getProject())) { DumbService.getInstance(element.getProject()).showDumbModeNotificationForFunctionality( GroovyBundle.message("popup.content.navigation.to.o... | browse |
30,560 | Collection<PsiMethod> (GrMethod method, JComponent component) { //collect all overriding methods (including fields with implicit accessors and method with default parameters) final PsiElementProcessor.CollectElementsWithLimit<PsiMethod> collectProcessor = new PsiElementProcessor.CollectElementsWithLimit<>(2, new HashSe... | getOverridingMethods |
30,561 | boolean (PsiMethod psiMethod) { if (psiMethod instanceof GrReflectedMethod) { psiMethod = ((GrReflectedMethod)psiMethod).getBaseMethod(); } return collectProcessor.execute(psiMethod); } | processInReadAction |
30,562 | Set<PsiMethod> (GrMethod method) { Set<PsiMethod> superMethods = new HashSet<>(); for (GrMethod m : PsiImplUtil.getMethodOrReflectedMethods(method)) { for (PsiMethod superMethod : m.findSuperMethods(false)) { if (superMethod instanceof GrReflectedMethod) { superMethod = ((GrReflectedMethod)superMethod).getBaseMethod();... | collectSuperMethods |
30,563 | StringBuilder (PsiElement @NotNull [] elements, final String pattern, StringBuilder result) { Set<String> names = new LinkedHashSet<>(); for (PsiElement element : elements) { String methodName = ((PsiMethod)element).getName(); PsiClass aClass = ((PsiMethod)element).getContainingClass(); String className = aClass == nul... | composeText |
30,564 | void (@NotNull final ProgressIndicator indicator) { super.run(indicator); for (PsiMethod method : PsiImplUtil.getMethodOrReflectedMethods(myMethod)) { OverridingMethodsSearch.search(method).forEach( new CommonProcessors.CollectProcessor<>() { @Override public boolean process(PsiMethod psiMethod) { if (!updateComponent(... | run |
30,565 | boolean (PsiMethod psiMethod) { if (!updateComponent(com.intellij.psi.impl.PsiImplUtil.handleMirror(psiMethod))) { indicator.cancel(); } indicator.checkCanceled(); return true; } | process |
30,566 | boolean (@NotNull GrMethod method) { final GrReflectedMethod[] reflectedMethods = method.getReflectedMethods(); if (reflectedMethods.length > 0) { for (GrReflectedMethod reflectedMethod : reflectedMethods) { final MethodSignatureBackedByPsiMethod first = SuperMethodsSearch.search(reflectedMethod, null, true, false).fin... | hasSuperMethods |
30,567 | int (@NotNull PsiElement element, @NotNull CharSequence documentChars) { if (element instanceof GrVariableDeclarationImpl) { GrVariable[] variables = ((GrVariableDeclarationImpl)element).getVariables(); if (variables.length == 1 && variables[0] instanceof GrField && variables[0].getInitializerGroovy() instanceof GrClos... | getGroovyCategory |
30,568 | void (final @NotNull List<? extends PsiElement> elements, final @NotNull Collection<? super LineMarkerInfo<?>> result) { Set<PsiMethod> methods = new HashSet<>(); for (PsiElement element : elements) { ProgressManager.checkCanceled(); if (element instanceof GrField) { methods.addAll(GroovyPropertyUtils.getFieldAccessors... | collectSlowLineMarkers |
30,569 | void (final @NotNull Set<? extends PsiMethod> methods, @NotNull Collection<? super LineMarkerInfo<?>> result) { final Set<PsiElement> overridden = new HashSet<>(); Set<PsiClass> classes = new HashSet<>(); for (PsiMethod method : methods) { ProgressManager.checkCanceled(); final PsiClass parentClass = method.getContaini... | collectOverridingMethods |
30,570 | boolean (@NotNull PsiMethod method) { if (method instanceof GrTraitMethod) return false; final PsiElement navigationElement = method.getNavigationElement(); return method.isPhysical() || navigationElement.isPhysical() && !(navigationElement instanceof PsiClass); } | isCorrectTarget |
30,571 | String () { return GotoSuperAction.FEATURE_ID; } | getFeatureUsedKey |
30,572 | GotoData (Editor editor, PsiFile file) { final PsiMember e = findSource(editor, file); if (e == null) return null; return new GotoData(e, findTargets(e), Collections.emptyList()); } | getSourceAndTargetElements |
30,573 | String (@NotNull PsiElement sourceElement, String name, int length, boolean finished) { return CodeInsightBundle.message("goto.super.method.chooser.title"); } | getChooserTitle |
30,574 | String (@NotNull PsiElement sourceElement, String name, int length) { return CodeInsightBundle.message("goto.super.method.findUsages.title", name); } | getFindUsagesTitle |
30,575 | String (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { final PsiMember source = findSource(editor, file); if (source instanceof PsiClass) { return GroovyBundle.message("no.super.classes.found"); } else if (source instanceof PsiMethod || source instanceof GrField) { return GroovyBundle.messag... | getNotFoundMessage |
30,576 | PsiMember (Editor editor, PsiFile file) { PsiElement element = file.findElementAt(editor.getCaretModel().getOffset()); if (element == null) return null; return PsiTreeUtil.getParentOfType(element, PsiMethod.class, GrField.class, PsiClass.class); } | findSource |
30,577 | boolean (Editor editor, PsiFile file) { return file != null && GroovyFileType.GROOVY_FILE_TYPE.equals(file.getFileType()); } | isValidFor |
30,578 | TextRange (@NotNull GrMethod method) { final TextRange textRange = method.getModifierList().getTextRange(); int startOffset = textRange != null ? textRange.getStartOffset():method.getTextOffset(); int endOffset = method.getThrowsList().getTextRange().getEndOffset(); return new TextRange(startOffset, endOffset); } | getDeclarationRange |
30,579 | TextRange (@NotNull GrClassInitializer initializer) { int startOffset = initializer.getModifierList().getTextRange().getStartOffset(); int endOffset = initializer.getBlock().getTextRange().getStartOffset(); return new TextRange(startOffset, endOffset); } | getDeclarationRange |
30,580 | List<GrExpression> (@NotNull PsiElement elementAt) { return GrIntroduceHandlerBase.collectExpressions(elementAt, true); } | getExpressionsAt |
30,581 | TextRange (@NotNull GrTypeDefinition aClass) { if (aClass instanceof GrAnonymousClassDefinition){ GrNewExpression call = (GrNewExpression)aClass.getParent(); int startOffset = call.getTextRange().getStartOffset(); int endOffset = call.getArgumentList().getTextRange().getEndOffset(); return new TextRange(startOffset, en... | getDeclarationRange |
30,582 | Set<GroovyFile> (UsageInfo @NotNull [] usages) { Set<GroovyFile> files = new HashSet<>(); for (UsageInfo usage : usages) { if (usage.isNonCodeUsage) continue; PsiFile file = usage.getFile(); if (file instanceof GroovyFile && ReadAction.compute(() -> file.isValid()) && file.isPhysical()) { files.add((GroovyFile)file); }... | prepareOperation |
30,583 | void (@NotNull final Project project, final Set<GroovyFile> files) { final ProgressManager progressManager = ProgressManager.getInstance(); final Map<GroovyFile, Pair<List<GrImportStatement>, Set<GrImportStatement>>> redundants = new HashMap<>(); final Runnable findUnusedImports = () -> { final ProgressIndicator progre... | performOperation |
30,584 | void (@NotNull Set<? extends GrMember> membersToMove, @NotNull PsiClass targetClass, @NotNull MultiMap<PsiElement, String> conflicts, @Nullable String newVisibility) { analyzeAccessibilityConflicts(membersToMove, targetClass, conflicts, newVisibility, targetClass, null); } | analyzeAccessibilityConflicts |
30,585 | void (@NotNull Set<? extends GrMember> membersToMove, @Nullable PsiClass targetClass, @NotNull MultiMap<PsiElement, String> conflicts, @Nullable String newVisibility, @NotNull PsiElement context, @Nullable Set<? extends PsiMethod> abstractMethods) { if (VisibilityUtil.ESCALATE_VISIBILITY.equals(newVisibility)) { //Stil... | analyzeAccessibilityConflicts |
30,586 | void (PsiMember member, PsiElement scope, @NotNull Set<? extends GrMember> membersToMove, @Nullable Set<? extends PsiMethod> abstractMethods, @Nullable PsiClass targetClass, @NotNull PsiElement context, MultiMap<PsiElement, String> conflicts) { final Set<PsiMember> moving = new HashSet<>(membersToMove); if (abstractMet... | checkUsedElements |
30,587 | void (final Project project, final Collection<? extends PsiElement> scopes, final UsageInfo[] usages, final PsiElement target, final MultiMap<PsiElement,String> conflicts) { if (scopes == null) return; final VirtualFile vFile = PsiUtilCore.getVirtualFile(target); if (vFile == null) return; List<GroovyPsiElement> groovy... | analyzeModuleConflicts |
30,588 | void (final Project project, final Collection<? extends GroovyPsiElement> scopes, final UsageInfo[] usages, final VirtualFile vFile, final MultiMap<PsiElement, String> conflicts) { if (scopes == null) return; for (final PsiElement scope : scopes) { if (scope instanceof PsiPackage) return; } final Module targetModule = ... | analyzeModuleConflicts |
30,589 | void (@NotNull GrCodeReferenceElement refElement) { super.visitCodeReferenceElement(refElement); visit(refElement); } | visitCodeReferenceElement |
30,590 | void (@NotNull GrReferenceExpression reference) { super.visitReferenceExpression(reference); visit(reference); } | visitReferenceExpression |
30,591 | void (GrReferenceElement<? extends GroovyPsiElement> reference) { final PsiElement resolved = reference.resolve(); if (resolved != null && !reported.contains(resolved) && !CommonRefactoringUtil.isAncestor(resolved, scopes) && !PsiSearchScopeUtil.isInScope(resolveScope, resolved) && !(resolved instanceof LightElement)) ... | visit |
30,592 | SuggestedNameInfo (@NotNull PsiElement element, @Nullable PsiElement nameSuggestionContext, @NotNull Set<String> result) { if (nameSuggestionContext == null) nameSuggestionContext = element; if (element instanceof GrVariable && nameSuggestionContext instanceof GroovyPsiElement) { final PsiType type = ((GrVariable)eleme... | getSuggestedNames |
30,593 | void (String name) { JavaStatisticsManager.incVariableNameUseCount(name, kind, ((GrVariable)element).getName(), typeText); } | nameChosen |
30,594 | PsiElement[] (@NotNull PsiElement expr, @NotNull PsiElement scope) { ArrayList<PsiElement> occurrences = new ArrayList<>(); BiPredicate<PsiElement, PsiElement> comparator = (element1, element2) -> { if (element1 != null && element1.equals(element2)) return true; return element1 instanceof GrParameter param1 && element2... | getExpressionOccurrences |
30,595 | void (@NotNull PsiElement expr, @NotNull PsiElement scope, @NotNull ArrayList<? super PsiElement> acc, BiPredicate<PsiElement, PsiElement> comparator, boolean goIntoInner) { if (scope.equals(expr)) { acc.add(expr); return; } for (PsiElement child : scope.getChildren()) { if (goIntoInner || !(child instanceof GrTypeDefi... | collectOccurrences |
30,596 | boolean (PsiElement tempContainer) { return tempContainer instanceof GrOpenBlock || tempContainer instanceof GrClosableBlock || tempContainer instanceof GroovyFileBase || tempContainer instanceof GrCaseSection || tempContainer instanceof GrLoopStatement || tempContainer instanceof GrIfStatement; } | isAppropriateContainerForIntroduceVariable |
30,597 | void (PsiElement[] occurrences) { Arrays.sort(occurrences, (elem1, elem2) -> { final int offset1 = elem1.getTextRange().getStartOffset(); final int offset2 = elem2.getTextRange().getStartOffset(); return offset1 - offset2; }); } | sortOccurrences |
30,598 | void (Project project, @Nullable Editor editor, PsiElement[] elements) { if (editor == null) return; ArrayList<RangeHighlighter> highlighters = new ArrayList<>(); HighlightManager highlightManager = HighlightManager.getInstance(project); if (elements.length > 0) { highlightManager.addOccurrenceHighlights(editor, elemen... | highlightOccurrences |
30,599 | void (Project project, Editor editor, TextRange[] ranges) { if (editor == null) return; ArrayList<RangeHighlighter> highlighters = new ArrayList<>(); HighlightManager highlightManager = HighlightManager.getInstance(project); for (TextRange range : ranges) { highlightManager.addRangeHighlight(editor, range.getStartOffse... | highlightOccurrencesByRanges |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.