Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
71,600 | void (@NotNull ActionContext context, @NotNull PsiCaseLabelElement labelElement, @NotNull ModPsiUpdater updater) { PsiSwitchLabelStatementBase label = PsiImplUtil.getSwitchLabel(labelElement); if (label == null) return; PsiSwitchBlock block = label.getEnclosingSwitchBlock(); if (block == null) return; deleteLabelElemen... | invoke |
71,601 | void (@NotNull Project project, @NotNull PsiCaseLabelElement labelElement) { PsiSwitchLabelStatementBase label = PsiImplUtil.getSwitchLabel(labelElement); if (label == null) return; PsiCaseLabelElementList labelElementList = label.getCaseLabelElementList(); if (labelElementList != null) { if (labelElementList.getElemen... | deleteLabelElement |
71,602 | void (@NotNull PsiSwitchLabelStatementBase label, @NotNull Project project) { PsiElementFactory factory = PsiElementFactory.getInstance(project); if (label instanceof PsiSwitchLabelStatement) { PsiSwitchLabelStatementBase defaultLabel = (PsiSwitchLabelStatement)factory.createStatementFromText("default:", null); new Com... | makeLabelDefault |
71,603 | void (PsiSwitchLabelStatementBase label) { if (shouldRemoveBranch(label)) { PsiCodeBlock scope = ObjectUtils.tryCast(label.getParent(), PsiCodeBlock.class); if (scope == null) return; PsiSwitchLabelStatementBase nextLabel = PsiTreeUtil.getNextSiblingOfType(label, PsiSwitchLabelStatementBase.class); PsiElement stopAt = ... | deleteLabel |
71,604 | Stream<BulkMethodInfo> () { return Arrays.stream(INFOS); } | consumers |
71,605 | boolean (PsiReferenceExpression ref) { if (!mySimpleName.equals(ref.getReferenceName())) return false; PsiElement element = ref.resolve(); if (!(element instanceof PsiMethod method)) return false; PsiParameterList parameters = method.getParameterList(); if (parameters.getParametersCount() != getSimpleParametersCount())... | isMyMethod |
71,606 | boolean (PsiClass aClass) { return ContainerUtil.or(aClass.findMethodsByName(myBulkName, true), method -> { PsiParameter[] parameters = method.getParameterList().getParameters(); if (parameters.length != 1) return false; return TypeUtils.variableHasTypeOrSubtype(parameters[0], getBulkParameterType()); }); } | haveBulkMethod |
71,607 | boolean (PsiExpression qualifier, PsiExpression iterable, boolean useArraysAsList) { PsiType qualifierType = qualifier.getType(); if (!(qualifierType instanceof PsiClassType)) return false; PsiType type = iterable.getType(); PsiElementFactory factory = JavaPsiFacade.getElementFactory(iterable.getProject()); JavaPsiFaca... | isSupportedIterable |
71,608 | String () { return myClassName; } | getClassName |
71,609 | String () { return mySimpleName; } | getSimpleName |
71,610 | int () { return myClassName.equals(JAVA_UTIL_MAP) && mySimpleName.equals("put") ? 2 : 1; } | getSimpleParametersCount |
71,611 | String () { return myBulkName; } | getBulkName |
71,612 | String () { return myBulkParameterType; } | getBulkParameterType |
71,613 | String () { return StringUtil.getShortName(myClassName) + "." + myBulkName; } | getReplacementName |
71,614 | String () { return myClassName + "::" + mySimpleName + " => " + myBulkName; } | toString |
71,615 | OptPane () { return pane( checkbox("USE_ARRAYS_AS_LIST", JavaBundle.message("inspection.replace.with.bulk.wrap.arrays"))); } | getOptionsPane |
71,616 | BulkMethodInfo (PsiReferenceExpression ref) { return StreamEx.of(BulkMethodInfoProvider.KEY.getExtensionList()) .flatMap(BulkMethodInfoProvider::consumers).findFirst(info -> info.isMyMethod(ref)).orElse(null); } | findInfo |
71,617 | PsiExpression (PsiMethodCallExpression expression, BulkMethodInfo info) { PsiExpression[] args = expression.getArgumentList().getExpressions(); if (args.length != info.getSimpleParametersCount()) return null; PsiElement parent = expression.getParent(); if (parent instanceof PsiLambdaExpression) { return findIterableFor... | findIterable |
71,618 | PsiExpression (PsiLambdaExpression lambda, PsiExpression[] args, BulkMethodInfo info) { PsiParameterList parameterList = lambda.getParameterList(); PsiParameter[] parameters = parameterList.getParameters(); int lambdaParametersCount = parameterList.getParametersCount(); if (info.getClassName().equals(CommonClassNames.J... | findIterableForLambda |
71,619 | boolean (PsiExpression[] args, PsiVariable variable) { PsiMethodCallExpression getKeyCandidate = ObjectUtils.tryCast(args[0], PsiMethodCallExpression.class); PsiMethodCallExpression getValueCandidate = ObjectUtils.tryCast(args[1], PsiMethodCallExpression.class); if (!ENTRY_GET_KEY.test(getKeyCandidate) || !ENTRY_GET_VA... | isGetKeyAndGetValue |
71,620 | PsiExpression (PsiStatement statement, PsiExpression[] args) { assert args.length == 1 || args.length == 2 : "The number of arguments must be either 1 or 2"; PsiElement parent = statement.getParent(); if (parent instanceof PsiForeachStatement foreachStatement) { PsiExpression iteratedValue = foreachStatement.getIterate... | findIterableForSingleStatement |
71,621 | PsiExpression (PsiForStatement loop, PsiExpression getElementExpression) { CountingLoop countingLoop = CountingLoop.from(loop); if (countingLoop == null || countingLoop.isIncluding() || countingLoop.isDescending() || !ExpressionUtils.isZero(countingLoop.getInitializer())) { return null; } IndexedContainer container = I... | findIterableForIndexedLoop |
71,622 | PsiExpression (PsiFunctionalExpression function) { PsiElement parent = PsiUtil.skipParenthesizedExprUp(function.getParent()); if (parent instanceof PsiTypeCastExpression) parent = PsiUtil.skipParenthesizedExprUp(parent.getParent()); if (!(parent instanceof PsiExpressionList)) return null; PsiExpression[] args = ((PsiEx... | findIterableForFunction |
71,623 | PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitMethodCallExpression(@NotNull PsiMethodCallExpression call) { super.visitMethodCallExpression(call); BulkMethodInfo info = findInfo(call.getMethodExpression()); if (info == null) return;... | buildVisitor |
71,624 | void (@NotNull PsiMethodCallExpression call) { super.visitMethodCallExpression(call); BulkMethodInfo info = findInfo(call.getMethodExpression()); if (info == null) return; PsiExpression iterable = findIterable(call, info); if (iterable != null) { register(iterable, info, call.getMethodExpression()); } } | visitMethodCallExpression |
71,625 | void (@NotNull PsiMethodReferenceExpression methodReference) { super.visitMethodReferenceExpression(methodReference); BulkMethodInfo info = findInfo(methodReference); if (info == null) return; PsiExpression iterable = findIterableForFunction(methodReference); if (iterable != null) { register(iterable, info, methodRefer... | visitMethodReferenceExpression |
71,626 | void (@NotNull PsiExpression iterable, @NotNull BulkMethodInfo info, @NotNull PsiReferenceExpression methodExpression) { PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(ExpressionUtils.getEffectiveQualifier(methodExpression)); if (qualifier instanceof PsiQualifiedExpression) { PsiMethod method = PsiTreeUtil... | register |
71,627 | boolean (PsiExpression qualifier) { if (qualifier instanceof PsiQualifiedExpression) return true; if (qualifier instanceof PsiReferenceExpression) { PsiExpression subQualifier = ((PsiReferenceExpression)qualifier).getQualifierExpression(); return subQualifier == null || isSupportedQualifier(subQualifier); } return fals... | isSupportedQualifier |
71,628 | String () { return JavaBundle.message("inspection.replace.with.bulk.fix.name", myInfo.getReplacementName()); } | getName |
71,629 | String () { return JavaBundle.message("inspection.replace.with.bulk.fix.family.name"); } | getFamilyName |
71,630 | void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiReferenceExpression)) return; PsiExpression qualifier = ExpressionUtils.getEffectiveQualifier((PsiReferenceExpression)element); if (qualifier == null) return; PsiExpression iterable; if (element in... | applyFix |
71,631 | String (PsiExpression iterable, CommentTracker ct) { if (iterable instanceof PsiSuperExpression) { PsiJavaCodeReferenceElement qualifier = ((PsiSuperExpression)iterable).getQualifier(); return (qualifier != null) ? ct.text(qualifier) + ".this" : "this"; } String iterableText; PsiType type = iterable.getType(); iterable... | calculateIterableText |
71,632 | boolean (@Nullable PsiExpression expression) { if (expression == null) { return false; } if (ExpressionUtils.nonStructuralChildren(expression).allMatch( expr -> expr instanceof PsiMethodCallExpression && isNotNull(((PsiMethodCallExpression)expr).resolveMethod()))) { return true; } return NullabilityUtil.getExpressionNu... | expressionIsNeverNull |
71,633 | boolean (@Nullable PsiExpression expression) { if (expression == null) { return false; } if (ExpressionUtils.nonStructuralChildren(expression).anyMatch( expr -> expr instanceof PsiMethodCallExpression && isNullable(((PsiMethodCallExpression)expr).resolveMethod()))) { return true; } return NullabilityUtil.getExpressionN... | expressionIsSometimesNull |
71,634 | boolean (@NotNull PsiVariable variable) { final PsiExpression initializer = variable.getInitializer(); if (initializer != null) { if (!expressionIsNeverNull(initializer)) { return false; } } else if (!variable.hasModifierProperty(PsiModifier.FINAL) || variable instanceof PsiParameter && ((PsiParameter)variable).getDecl... | variableNeverAssignedNull |
71,635 | boolean (@NotNull PsiVariable variable) { final PsiExpression initializer = variable.getInitializer(); if (initializer != null && expressionIsSometimesNull(initializer)) { return true; } final Query<PsiReference> references = ReferencesSearch.search(variable); for (final PsiReference reference : references) { final Psi... | variableSometimesAssignedNull |
71,636 | void (@NotNull PsiFile file) { int prevNumAnnotationsAdded; int pass = 0; do { final NullityInferrerVisitor visitor = new NullityInferrerVisitor(); prevNumAnnotationsAdded = numAnnotationsAdded; file.accept(visitor); pass++; } while (prevNumAnnotationsAdded < numAnnotationsAdded && pass < MAX_PASSES); } | collect |
71,637 | void (final Project project) { final NullableNotNullManager manager = NullableNotNullManager.getInstance(project); for (SmartPsiElementPointer<? extends PsiModifierListOwner> pointer : myNullableSet) { annotateNullable(project, manager, pointer.getElement()); } for (SmartPsiElementPointer<? extends PsiModifierListOwner... | apply |
71,638 | void (final Project project) { SwingUtilities.invokeLater( () -> Messages.showInfoMessage(project, JavaBundle.message("dialog.message.no.places.found.to.infer.nullable.notnull"), JavaBundle.message("dialog.title.infer.nullity.results"))); } | nothingFoundMessage |
71,639 | void (Project project, NullableNotNullManager manager, final PsiModifierListOwner element) { if (element != null) { if (element instanceof PsiField && ((PsiField)element).hasInitializer() && element.hasModifierProperty(PsiModifier.FINAL)) return; invoke(project, element, manager.getDefaultNotNull(), manager.getDefaultN... | annotateNotNull |
71,640 | void (Project project, NullableNotNullManager manager, final PsiModifierListOwner element) { if (element != null) { invoke(project, element, manager.getDefaultNullable(), manager.getDefaultNotNull()); } } | annotateNullable |
71,641 | void (final Project project, final PsiModifierListOwner element, final String fqn, final String toRemove) { new AddAnnotationFix(fqn, element, toRemove).invoke(project, null, element.getContainingFile()); } | invoke |
71,642 | int () { return myNotNullSet.size() + myNullableSet.size(); } | getCount |
71,643 | void (Project project, NullableNotNullManager manager, UsageInfo info) { if (info instanceof NullableUsageInfo) { annotateNullable(project, manager, (PsiModifierListOwner)info.getElement()); } else if (info instanceof NotNullUsageInfo) { annotateNotNull(project, manager, (PsiModifierListOwner)info.getElement()); } } | apply |
71,644 | boolean (PsiModifierListOwner element) { if (!myAnnotateLocalVariables){ if (element instanceof PsiLocalVariable) return true; if (element instanceof PsiParameter && ((PsiParameter)element).getDeclarationScope() instanceof PsiForeachStatement) return true; } return false; } | shouldIgnore |
71,645 | void (@NotNull PsiModifierListOwner method) { registerAnnotation(method, true); } | registerNullableAnnotation |
71,646 | void (@NotNull PsiModifierListOwner method) { registerAnnotation(method, false); } | registerNotNullAnnotation |
71,647 | void (@NotNull PsiModifierListOwner method, boolean isNullable) { final SmartPsiElementPointer<PsiModifierListOwner> methodPointer = myPointerManager.createSmartPsiElementPointer(method); if (isNullable) { myNullableSet.add(methodPointer); } else { myNotNullSet.add(methodPointer); } numAnnotationsAdded++; } | registerAnnotation |
71,648 | void (List<? super UsageInfo> usages, boolean nullable) { final List<SmartPsiElementPointer<? extends PsiModifierListOwner>> set = nullable ? myNullableSet : myNotNullSet; for (SmartPsiElementPointer<? extends PsiModifierListOwner> elementPointer : set) { ReadAction.run(() -> { PsiModifierListOwner element = elementPoi... | collect |
71,649 | boolean (@Nullable PsiModifierListOwner owner) { if (owner == null) return false; if (NullableNotNullManager.isNotNull(owner)) { return true; } final SmartPsiElementPointer<PsiModifierListOwner> pointer = myPointerManager.createSmartPsiElementPointer(owner); return myNotNullSet.contains(pointer); } | isNotNull |
71,650 | boolean (@Nullable PsiModifierListOwner owner) { if (owner == null) return false; if (NullableNotNullManager.isNullable(owner)) { return true; } final SmartPsiElementPointer<PsiModifierListOwner> pointer = myPointerManager.createSmartPsiElementPointer(owner); return myNullableSet.contains(pointer); } | isNullable |
71,651 | boolean (@NotNull PsiModifierListOwner owner) { NullableNotNullManager manager = NullableNotNullManager.getInstance(owner.getProject()); NullabilityAnnotationInfo info = manager.findEffectiveNullabilityInfo(owner); if (info != null && !info.isInferred() && info.getNullability() != Nullability.UNKNOWN) return true; fina... | hasNullability |
71,652 | void (@NotNull PsiMethod method) { super.visitMethod(method); if (method.isConstructor() || method.getReturnType() instanceof PsiPrimitiveType) { return; } final Collection<PsiMethod> overridingMethods = OverridingMethodsSearch.search(method).findAll(); for (final PsiMethod overridingMethod : overridingMethods) { if (i... | visitMethod |
71,653 | void (@NotNull PsiLocalVariable variable) { super.visitLocalVariable(variable); if (variable.getType() instanceof PsiPrimitiveType || isNotNull(variable) || isNullable(variable)) { return; } if (variableNeverAssignedNull(variable)) { registerNotNullAnnotation(variable); } if (variableSometimesAssignedNull(variable)) { ... | visitLocalVariable |
71,654 | void (@NotNull PsiParameter parameter) { super.visitParameter(parameter); if (parameter.getType() instanceof PsiPrimitiveType || hasNullability(parameter)) { return; } final PsiElement grandParent = parameter.getDeclarationScope(); if (grandParent instanceof PsiMethod method) { if (method.getBody() != null) { if (JavaS... | visitParameter |
71,655 | boolean (PsiParameter parameter, PsiReferenceExpression expr, PsiElement parent) { if (PsiUtil.isAccessedForWriting(expr)) return true; if (parent instanceof PsiBinaryExpression binOp) { PsiExpression opposite = null; final PsiExpression lOperand = binOp.getLOperand(); final PsiExpression rOperand = binOp.getROperand()... | processParameter |
71,656 | void (@NotNull PsiField field) { super.visitField(field); if (field instanceof PsiEnumConstant) { return; } if (field.getType() instanceof PsiPrimitiveType || isNotNull(field) || isNullable(field)) { return; } if (variableNeverAssignedNull(field)) { registerNotNullAnnotation(field); } if (variableSometimesAssignedNull(... | visitField |
71,657 | boolean () { return myCount > myTotal - 1; } | isDone |
71,658 | boolean () { final ProgressIndicator indicator = myTask.getIndicator(); if (indicator != null) { indicator.setFraction(((double)myCount) / myTotal); } NullityInferrer.apply(myProject, myNotNullManager, myInfos[myCount++]); return isDone(); } | iteration |
71,659 | void (@NotNull final Project project, @NotNull final AnalysisScope scope) { PropertiesComponent.getInstance().setValue(ANNOTATE_LOCAL_VARIABLES, isAnnotateLocalVariables()); final ProgressManager progressManager = ProgressManager.getInstance(); final Set<Module> modulesWithoutAnnotations = new HashSet<>(); final Set<Mo... | analyze |
71,660 | void (@NotNull PsiFile file) { fileCount[0]++; final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator(); final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { progressIndicator.setText2(ProjectUtil.calcRelativeToProjectPath(virtualFile, project)); } pr... | visitFile |
71,661 | void (@NotNull Project project, @NotNull AnalysisScope scope, UsageInfo @NotNull [] usageInfos) { if (usageInfos.length < 5) { applyRunnable(project, () -> usageInfos).run(); } else { showUsageView(project, usageInfos, scope); } } | processUsages |
71,662 | Promise<Void> (@NotNull final Project project, @NotNull final Set<? extends Module> modulesWithoutAnnotations, @NotNull String annoFQN, final @NlsContexts.DialogTitle String title) { final Library annotationsLib = LibraryUtil.findLibraryByClass(annoFQN, project); if (annotationsLib != null) { String message = JavaBundl... | addAnnotationsDependency |
71,663 | OkCancelDialogBuilder (@NlsContexts.DialogTitle String title, @NlsContexts.DialogMessage String message, @NotNull Project project) { return MessageDialogBuilder.okCancel(title, message) .icon(Messages.getErrorIcon()) .doNotAsk(new DoNotAskOption.Adapter() { @Override public void rememberChoice(boolean isSelected, int e... | createDependencyDialog |
71,664 | void (boolean isSelected, int exitCode) { PropertiesComponent.getInstance(project).setValue(SUGGEST_ANNOTATION_DEPENDENCY, !isSelected, true); } | rememberChoice |
71,665 | void (@NotNull final PsiFile file) { myFileCount++; final VirtualFile virtualFile = file.getVirtualFile(); final FileViewProvider viewProvider = psiManager.findViewProvider(virtualFile); final Document document = viewProvider == null ? null : viewProvider.getDocument(); if (document == null || virtualFile.getFileType()... | visitFile |
71,666 | boolean () { return myUi.get().getCheckBox().isSelected(); } | isAnnotateLocalVariables |
71,667 | Runnable (final Project project, final Computable<UsageInfo[]> computable) { return () -> { final LocalHistoryAction action = LocalHistory.getInstance().startAction( JavaBundle.message("action.description.infer.nullity.annotations")); try { ReadAction.run(() -> { final UsageInfo[] infos = computable.compute(); if (info... | applyRunnable |
71,668 | void (final Project project, final AnalysisScope scope) { AppUIExecutor.onUiThread().inSmartMode(project).execute(() -> analyze(project, scope)); } | restartAnalysis |
71,669 | void (@NotNull Project project, final UsageInfo[] usageInfos, @NotNull AnalysisScope scope) { final UsageTarget[] targets = UsageTarget.EMPTY_ARRAY; final Ref<Usage[]> convertUsagesRef = new Ref<>(); if (!ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> ApplicationManager.getApplication().runRead... | showUsageView |
71,670 | Factory<UsageSearcher> (@NotNull final Project project, @NotNull final AnalysisScope scope) { return () -> new UsageInfoSearcherAdapter() { @Override protected UsageInfo @NotNull [] findUsages() { return ObjectUtils.notNull(InferNullityAnnotationsAction.this.findUsages(project, scope, scope.getFileCount()), UsageInfo.E... | rerunFactory |
71,671 | void (@NotNull Processor<? super Usage> processor) { processUsages(processor, project); } | generate |
71,672 | JComponent (@NotNull Project project, BaseAnalysisActionDialog dialog) { InferNullityAdditionalUi ui = myUi.get(); ui.getCheckBox().setSelected(PropertiesComponent.getInstance().getBoolean(ANNOTATE_LOCAL_VARIABLES)); return ui.getPanel(); } | getAdditionalActionSettings |
71,673 | boolean (@NotNull Project project) { return PropertiesComponent.getInstance(project).getBoolean(SUGGEST_ANNOTATION_DEPENDENCY, true); } | maySuggestAnnotationDependency |
71,674 | String () { return JavaBundle.message("intention.family.unimplement.interface.class"); } | getFamilyName |
71,675 | PsiJavaCodeReferenceElement (@NotNull PsiElement element, @NotNull PsiReferenceList referenceList) { while (element.getParent() != referenceList) { element = element.getParent(); if (element == null) return null; } return ObjectUtils.tryCast(element, PsiJavaCodeReferenceElement.class); } | getTopLevelRef |
71,676 | void (@NotNull ActionContext context, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (shouldCorrect(element)) element = updater.getWritable(context.findLeafOnTheLeft()); final PsiReferenceList referenceList = PsiTreeUtil.getParentOfType(element, PsiReferenceList.class); if (referenceList == null) ret... | invoke |
71,677 | boolean (@NotNull PsiElement element) { return element instanceof PsiWhiteSpace || PsiUtil.isJavaToken(element, JavaTokenType.COMMA); } | shouldCorrect |
71,678 | boolean (PsiJavaCodeReferenceElement element, PsiJavaCodeReferenceElement otherElement, @NotNull PsiClass aClass) { final PsiManager manager = aClass.getManager(); return !manager.areElementsEquivalent(otherElement, element) && manager.areElementsEquivalent(otherElement.resolve(), aClass); } | isDuplicate |
71,679 | String (@NotNull PsiClass targetClass) { return JavaBundle.message("intention.text.implements.list.remove.others", myClassName); } | getText |
71,680 | String () { return JavaBundle.message("intention.text.replace.implements.with.static.import"); } | getFamilyName |
71,681 | boolean (@NotNull PsiClass targetClass) { if (!targetClass.isInterface()) { return false; } final PsiReferenceList extendsList = targetClass.getExtendsList(); if (extendsList != null && extendsList.getReferencedTypes().length > 0) { final List<PsiMethod> methods = new ArrayList<>(Arrays.asList(targetClass.getAllMethods... | isEmptyClass |
71,682 | ModCommand (@NotNull ActionContext context) { PsiElement leaf = context.findLeaf(); final PsiClass targetClass = Objects.requireNonNull(getTargetClass(leaf)); return ModCommand.psiUpdate(context, updater -> { final Map<PsiJavaFile, Map<PsiField, Set<PsiElement>>> refs = new HashMap<>(); for (PsiField field : targetClas... | perform |
71,683 | PsiClass (PsiElement element) { if (element instanceof PsiIdentifier) { final PsiElement parent = element.getParent(); if (parent instanceof PsiClass psiClass) { return isEmptyClass(psiClass) && DirectClassInheritorsSearch.search(psiClass).findFirst() != null ? psiClass : null; } } PsiJavaCodeReferenceElement ref = Psi... | getTargetClass |
71,684 | boolean (PsiClass containingClass, PsiElement reference, PsiClass targetClass) { if (reference instanceof PsiReferenceExpression ref) { final PsiElement qualifier = ref.getQualifier(); if (qualifier != null) { if (qualifier instanceof PsiReferenceExpression qualifierRef) { final PsiElement resolved = qualifierRef.resol... | encodeQualifier |
71,685 | void (PsiJavaFile psiFile, PsiField psiField, PsiClass containingClass, String fieldName, PsiElement reference, Project project) { if (reference instanceof PsiReferenceExpression ref) { PsiImportList importList = psiFile.getImportList(); if (importList != null) { PsiReferenceExpressionImpl.bindToElementViaStaticImport(... | bindReference |
71,686 | boolean (final PsiClass targetClass, final PsiReferenceList referenceList, final Set<? super PsiJavaCodeReferenceElement> refs) { if (referenceList != null) { for (PsiJavaCodeReferenceElement referenceElement : referenceList.getReferenceElements()) { if (referenceElement.isReferenceTo(targetClass)) { refs.add(reference... | collectExtendsImplements |
71,687 | PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitTypeCastExpression(@NotNull PsiTypeCastExpression cast) { PsiTypeElement castTypeElement = cast.getCastType(); if (castTypeElement == null || castTypeElement.getAnnotations().length > 0)... | buildVisitor |
71,688 | void (@NotNull PsiTypeCastExpression cast) { PsiTypeElement castTypeElement = cast.getCastType(); if (castTypeElement == null || castTypeElement.getAnnotations().length > 0) return; PsiType castType = GenericsUtil.getVariableTypeByExpressionType(cast.getType()); if (!(castType instanceof PsiClassType) || ((PsiClassType... | visitTypeCastExpression |
71,689 | boolean (@NotNull PsiTypeCastExpression cast, @NotNull PsiType targetType, @NotNull PsiReferenceExpression reference) { PsiElement parent = PsiUtil.skipParenthesizedExprUp(reference.getParent()); if (PsiUtil.isAccessedForWriting(reference)) { PsiAssignmentExpression assignmentExpression = tryCast(parent, PsiAssignmentE... | isVariableTypeChangeSafeForReference |
71,690 | String () { return JavaBundle.message("inspection.cast.can.be.removed.narrowing.variable.type.fix.name", myVariableName, myType); } | getName |
71,691 | String () { return JavaBundle.message("inspection.cast.can.be.removed.narrowing.variable.type.fix.family.name"); } | getFamilyName |
71,692 | void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiTypeCastExpression cast = PsiTreeUtil.getParentOfType(element, PsiTypeCastExpression.class); if (cast == null) return; PsiReferenceExpression ref = tryCast(PsiUtil.skipParenthesizedExprDown(cast.getOperand()), PsiReference... | applyFix |
71,693 | LocalQuickFix (boolean onTheFly) { return new InvertBooleanFix(InspectionGadgetsBundle.message("invert.method.quickfix")) { @Override public void doFix(@NotNull PsiElement element) { if (onTheFly) { //show the dialog, suggest to rename super.doFix(element); } else { PsiElement elementToRefactor = getElementToRefactor(e... | getInvertBooleanFix |
71,694 | void (@NotNull PsiElement element) { if (onTheFly) { //show the dialog, suggest to rename super.doFix(element); } else { PsiElement elementToRefactor = getElementToRefactor(element); new InvertBooleanProcessor(elementToRefactor, ((PsiNamedElement)elementToRefactor).getName()).run(); } } | doFix |
71,695 | String () { return InspectionsBundle.message("group.names.data.flow.issues"); } | getGroupDisplayName |
71,696 | String () { return "BooleanMethodIsAlwaysInverted"; } | getShortName |
71,697 | RefGraphAnnotator (@NotNull RefManager refManager) { return new BooleanInvertedAnnotator(); } | getAnnotator |
71,698 | CommonProblemDescriptor[] (@NotNull RefEntity refEntity, @NotNull AnalysisScope scope, @NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext) { if (!(refEntity instanceof RefMethod refMethod)) return null; if (!refMethod.isReferenced() || refMethod.isConstructor() || hasNonInvertedCalls(ref... | checkElement |
71,699 | ProblemDescriptor (@NotNull InspectionManager manager, PsiElement identifier, boolean onTheFly) { final InvertBooleanDelegate invertBooleanDelegate = InvertBooleanDelegate.findInvertBooleanDelegate(identifier.getParent()); return manager.createProblemDescriptor(identifier, JavaBundle.message("boolean.method.is.always.i... | createProblemDescriptor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.