Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
75,100 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull PsiNamedElement element, @NotNull String newName) { return new RenameElementFix(element, newName); } | createRenameElementFix |
75,101 | IntentionAction (@NotNull PsiClass aClass, @NotNull PsiClassType classToExtendFrom) { return new ChangeExtendsToImplementsFix(aClass, classToExtendFrom).asIntention(); } | createChangeExtendsToImplementsFix |
75,102 | IntentionAction (@NotNull PsiClass aClass) { return new CreateConstructorMatchingSuperFix(aClass); } | createCreateConstructorMatchingSuperFix |
75,103 | IntentionAction (@NotNull PsiNewExpression expression, PsiClass aClass) { return new RemoveNewQualifierFix(expression, aClass).asIntention(); } | createRemoveNewQualifierFix |
75,104 | IntentionAction (@NotNull PsiMethod superMethod, @NotNull PsiType superMethodType) { return new MethodReturnTypeFix(superMethod, superMethodType, false, false, true); } | createSuperMethodReturnFix |
75,105 | IntentionAction (@NotNull PsiMethodCallExpression call, @NotNull PsiClass aClass) { return new InsertNewFix(call, aClass).asIntention(); } | createInsertNewFix |
75,106 | IntentionAction (@NotNull PsiMethod method) { return new AddMethodBodyFix(method).asIntention(); } | createAddMethodBodyFix |
75,107 | IntentionAction (@NotNull PsiMethod method, @NotNull @Nls String text) { return new AddMethodBodyFix(method, text).asIntention(); } | createAddMethodBodyFix |
75,108 | IntentionAction (@NotNull PsiMethod method) { return new DeleteMethodBodyFix(method).asIntention(); } | createDeleteMethodBodyFix |
75,109 | IntentionAction (@NotNull PsiMethod constructor) { return new InsertSuperFix(constructor).asIntention(); } | createInsertSuperFix |
75,110 | IntentionAction (@NotNull PsiMethod constructor) { return new InsertThisFix(constructor).asIntention(); } | createInsertThisFix |
75,111 | IntentionAction (@NotNull PsiMethod targetMethod, PsiExpression @NotNull [] expressions, @NotNull PsiSubstitutor substitutor, @NotNull PsiElement context, boolean changeAllUsages, int minUsagesNumberToShowDialog) { return new ChangeMethodSignatureFromUsageFix(targetMethod, expressions, substitutor, context, changeAllUs... | createChangeMethodSignatureFromUsageFix |
75,112 | IntentionAction (@NotNull PsiMethod targetMethod, PsiExpression @NotNull [] expressions, @NotNull PsiSubstitutor substitutor, @NotNull PsiElement context, boolean changeAllUsages, int minUsagesNumberToShowDialog) { return new ChangeMethodSignatureFromUsageReverseOrderFix(targetMethod, expressions, substitutor, context,... | createChangeMethodSignatureFromUsageReverseOrderFix |
75,113 | List<IntentionAction> (@NotNull PsiMethodCallExpression call) { return CreateMethodFromUsage.generateActions(call); } | createCreateMethodFromUsageFixes |
75,114 | IntentionAction (@NotNull PsiMethodReferenceExpression methodReferenceExpression) { return new CreateMethodFromMethodReferenceFix(methodReferenceExpression); } | createCreateMethodFromUsageFix |
75,115 | List<IntentionAction> (@NotNull PsiMethodCallExpression call) { return CreateConstructorFromUsage.generateConstructorActions(call); } | createCreateConstructorFromCallExpressionFixes |
75,116 | IntentionAction (@NotNull PsiReferenceExpression exprToReplace, @NotNull PsiClass resolvedExprClass, @NotNull String patternVarName) { return new ReplaceWithTypePatternFix(exprToReplace, resolvedExprClass, patternVarName).asIntention(); } | createReplaceWithTypePatternFix |
75,117 | IntentionAction (@NotNull PsiMethodCallExpression call) { return new StaticImportMethodFix(call.getContainingFile(), call); } | createStaticImportMethodFix |
75,118 | IntentionAction (@NotNull PsiMethodCallExpression call) { return new QualifyStaticMethodCallFix(call.getContainingFile(), call); } | createQualifyStaticMethodCallFix |
75,119 | IntentionAction (@NotNull PsiMethodCallExpression call) { return new ReplaceAddAllArrayToCollectionFix(call).asIntention(); } | createReplaceAddAllArrayToCollectionFix |
75,120 | List<IntentionAction> (@NotNull PsiConstructorCall call) { return CreateConstructorFromUsage.generateConstructorActions(call); } | createCreateConstructorFromUsageFixes |
75,121 | List<IntentionAction> (@NotNull PsiMethodCallExpression call, @NotNull PsiExpressionList list) { return VariableTypeFromCallFix.getQuickFixActions(call, list); } | getVariableTypeFromCallFixes |
75,122 | IntentionAction (@NotNull PsiParameterListOwner methodOrLambda) { return new AddReturnFix(methodOrLambda).asIntention(); } | createAddReturnFix |
75,123 | IntentionAction (@NotNull PsiVariable variable) { return new AddVariableInitializerFix(variable).asIntention(); } | createAddVariableInitializerFix |
75,124 | IntentionAction (@NotNull PsiVariable variable, @NotNull PsiReferenceExpression expression) { return new DeferFinalAssignmentFix(variable, expression).asIntention(); } | createDeferFinalAssignmentFix |
75,125 | IntentionAction (@NotNull PsiVariable variable, @NotNull PsiElement scope) { return new VariableAccessFromInnerClassFix(variable, scope); } | createVariableAccessFromInnerClassFix |
75,126 | IntentionAction (@NotNull PsiField field) { return new CreateConstructorParameterFromFieldFix(field).asIntention(); } | createCreateConstructorParameterFromFieldFix |
75,127 | IntentionAction (@NotNull PsiField field) { return new InitializeFinalFieldInConstructorFix(field).asIntention(); } | createInitializeFinalFieldInConstructorFix |
75,128 | IntentionAction (@NotNull PsiClass owner, @NotNull PsiReferenceParameterList parameterList) { return new ChangeClassSignatureFromUsageFix(owner, parameterList); } | createChangeClassSignatureFromUsageFix |
75,129 | IntentionAction (@NotNull PsiTypeElement element, @NotNull String typeName, @NotNull String boxedTypeName) { return new ReplacePrimitiveWithBoxedTypeAction(element, typeName, boxedTypeName).asIntention(); } | createReplacePrimitiveWithBoxedTypeAction |
75,130 | IntentionAction (@NotNull PsiType operandType, @NotNull PsiTypeElement checkTypeElement) { PsiPrimitiveType primitiveType = ObjectUtils.tryCast(checkTypeElement.getType(), PsiPrimitiveType.class); if (primitiveType == null) return null; PsiClassType boxedType = primitiveType.getBoxedType(checkTypeElement); if (boxedTyp... | createReplacePrimitiveWithBoxedTypeAction |
75,131 | IntentionAction (@NotNull PsiVariable parameter) { return new MakeVarargParameterLastFix(parameter).asIntention(); } | createMakeVarargParameterLastFix |
75,132 | IntentionAction (@NotNull PsiReceiverParameter parameter) { return new MakeReceiverParameterFirstFix(parameter).asIntention(); } | createMakeReceiverParameterFirstFix |
75,133 | IntentionAction (@NotNull PsiTypeParameter aClass, @NotNull PsiClassType type) { return new MoveBoundClassToFrontFix(aClass, type).asIntention(); } | createMoveBoundClassToFrontFix |
75,134 | void (@NotNull PsiMethod method, @NotNull List<? super IntentionAction> registrar) { PullAsAbstractUpFix.registerQuickFix(method, registrar); } | registerPullAsAbstractUpFixes |
75,135 | IntentionAction (@NotNull PsiNameValuePair pair) { return new CreateAnnotationMethodFromUsageFix(pair); } | createCreateAnnotationMethodFromUsageFix |
75,136 | IntentionAction (final boolean onTheFly, @NotNull PsiFile file) { ApplicationManager.getApplication().assertIsNonDispatchThread(); VirtualFile virtualFile = file.getVirtualFile(); boolean isInContent = virtualFile != null && (ModuleUtilCore.projectContainsFile(file.getProject(), virtualFile, false) || ScratchUtil.isScr... | createOptimizeImportsFix |
75,137 | String () { return QuickFixBundle.message("optimize.imports.fix"); } | getText |
75,138 | String () { return QuickFixBundle.message("optimize.imports.fix"); } | getFamilyName |
75,139 | boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!(file instanceof PsiJavaFile)) { return false; } if (ApplicationManager.getApplication().isDispatchThread() && myOnTheFly && !timeToOptimizeImports(file, myInContent, extensionsAllowToChangeFileSilently)) { return false; } VirtualFile virtualFile = ... | isAvailable |
75,140 | boolean () { return true; } | startInWriteAction |
75,141 | IntentionAction (@NotNull PsiParameter parameter, boolean excludingHierarchy) { if (excludingHierarchy) { InspectionToolWrapper<?, ?> toolWrapper = Objects.requireNonNull(InspectionProfileManager.getInstance(parameter.getProject()) .getCurrentProfile().getInspectionTool("unused", parameter)); InspectionProfileEntry too... | createSafeDeleteUnusedParameterInHierarchyFix |
75,142 | IntentionAction (@NotNull Project project, @NotNull String qualifiedName) { final EntryPointsManagerBase entryPointsManager = EntryPointsManagerBase.getInstance(project); return SpecialAnnotationsUtil.createAddToSpecialAnnotationsListIntentionAction( QuickFixBundle.message("fix.unused.symbol.injection.text", qualifiedN... | createAddToDependencyInjectionAnnotationsFix |
75,143 | IntentionAction (@NotNull Project project, @NotNull final String qualifiedName) { EntryPointsManagerBase entryPointsManagerBase = EntryPointsManagerBase.getInstance(project); return entryPointsManagerBase.new AddImplicitlyWriteAnnotation(qualifiedName); } | createAddToImplicitlyWrittenFieldsFix |
75,144 | IntentionAction (boolean createGetter, boolean createSetter, @NotNull PsiField field) { return new CreateGetterOrSetterFix(createGetter, createSetter, field); } | createCreateGetterOrSetterFix |
75,145 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull PsiNamedElement namedElement, boolean useElementNameAsSuffix) { return RenameToIgnoredFix.createRenameToIgnoreFix(namedElement, useElementNameAsSuffix); } | createRenameToIgnoredFix |
75,146 | IntentionAction () { return new EnableOptimizeImportsOnTheFlyFix(); } | createEnableOptimizeImportsOnTheFlyFix |
75,147 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull PsiElement element) { return LocalQuickFixAndIntentionActionOnPsiElement.from(new DeleteElementFix(element), element); } | createDeleteFix |
75,148 | IntentionAction (@NotNull PsiElement @NotNull ... elements) { return new DeleteElementFix.DeleteMultiFix(elements).asIntention(); } | createDeleteFix |
75,149 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull PsiElement element, @Nls @NotNull String text) { return LocalQuickFixAndIntentionActionOnPsiElement.from(new DeleteElementFix(element, text), element); } | createDeleteFix |
75,150 | IntentionAction (@NotNull PsiElement element) { return new SafeDeleteFix(element); } | createSafeDeleteFix |
75,151 | void (@NotNull PsiFile file) { final Project project = file.getProject(); final Document document = PsiDocumentManager.getInstance(project).getDocument(file); if (document == null) return; String beforeText = file.getText(); long oldStamp = document.getModificationStamp(); DocumentUtil.writeInRunUndoTransparentAction((... | invokeOnTheFlyImportOptimizer |
75,152 | IntentionAction (@NotNull final PsiAnnotation annotation, final PsiMethod @NotNull [] annotationMethods, @NotNull final Collection<String> missedElements) { return new AddMissingRequiredAnnotationParametersFix(annotation, annotationMethods, missedElements).asIntention(); } | createAddMissingRequiredAnnotationParametersFix |
75,153 | IntentionAction (@NotNull PsiAnnotationMemberValue value, @NotNull PsiType expectedType) { return new SurroundWithQuotesAnnotationParameterValueFix(value, expectedType).asIntention(); } | createSurroundWithQuotesAnnotationParameterValueFix |
75,154 | IntentionAction (@NotNull PsiMethodCallExpression methodCall) { return new AddMethodQualifierFix(methodCall).asIntention(); } | addMethodQualifierFix |
75,155 | IntentionAction (@Nullable PsiType type, @NotNull PsiExpression expression) { return WrapObjectWithOptionalOfNullableFix.createFix(type, expression); } | createWrapWithOptionalFix |
75,156 | IntentionAction (@NotNull PsiExpression expression) { final PsiElement parent = expression.getParent(); if (parent instanceof PsiForeachStatement forEach) { final PsiType type = expression.getType(); if (InheritanceUtil.isInheritor(type, CommonClassNames.JAVA_UTIL_ITERATOR)) { return new ReplaceIteratorForEachLoopWithI... | createNotIterableForEachLoopFix |
75,157 | List<IntentionAction> (@NotNull PsiNameValuePair pair) { return AddAnnotationAttributeNameFix.createFixes(pair); } | createAddAnnotationAttributeNameFixes |
75,158 | boolean (@NotNull PsiFile file, boolean isInContent, @NotNull ThreeState extensionsAllowToChangeFileSilently) { ThreadingAssertions.assertEventDispatchThread(); if (!CodeInsightWorkspaceSettings.getInstance(file.getProject()).isOptimizeImportsOnTheFly()) { return false; } DaemonCodeAnalyzerEx codeAnalyzer = DaemonCodeA... | timeToOptimizeImports |
75,159 | boolean (@NotNull PsiFile file) { Document document = PsiDocumentManager.getInstance(file.getProject()).getDocument(file); if (document == null) return true; // ignore unresolved imports errors PsiImportList importList = ((PsiJavaFile)file).getImportList(); final TextRange importsRange = importList == null ? TextRange.... | containsErrorsPreventingOptimize |
75,160 | IntentionAction (@NotNull PsiExpression collectionExpression, @NotNull PsiExpression expressionToReplace, @NotNull PsiArrayType arrayType) { return new ConvertCollectionToArrayFix(collectionExpression, expressionToReplace, arrayType).asIntention(); } | createCollectionToArrayFix |
75,161 | IntentionAction (@NotNull PsiMethodCallExpression call, @NotNull PsiMethod method) { return new InsertMethodCallFix(call, method).asIntention(); } | createInsertMethodCallFix |
75,162 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull PsiReferenceExpression methodRef, @NotNull JavaResolveResult result) { return LocalQuickFixAndIntentionActionOnPsiElement.from(new AccessStaticViaInstanceFix(methodRef, result), methodRef); } | createAccessStaticViaInstanceFix |
75,163 | IntentionAction (@Nullable PsiType type, @NotNull PsiExpression expression) { return new WrapWithAdapterMethodCallFix(type, expression, null); } | createWrapWithAdapterFix |
75,164 | IntentionAction (@NotNull PsiExpressionStatement statement) { return new DeleteSideEffectsAwareFix(statement, statement.getExpression()).asIntention(); } | createDeleteSideEffectAwareFix |
75,165 | IntentionAction (@NotNull Module module, @Nullable String packageName) { return CreateClassInPackageInModuleFix.createFix(module, packageName); } | createCreateClassInPackageInModuleFix |
75,166 | IntentionAction () { return new RunRefactoringAction(JavaRefactoringActionHandlerFactory.getInstance().createPushDownHandler(), JavaBundle.message("push.method.down.command.name")) { @NotNull @Override public Priority getPriority() { return Priority.NORMAL; } }; } | createPushDownMethodFix |
75,167 | Priority () { return Priority.NORMAL; } | getPriority |
75,168 | IntentionAction (@NotNull PsiMethod method, @NotNull PsiMethod superMethod) { return new SameErasureButDifferentMethodsFix(method, superMethod); } | createSameErasureButDifferentMethodsFix |
75,169 | IntentionAction (@NotNull PsiSwitchBlock switchBlock, @NotNull Set<String> missingCases) { return new CreateEnumMissingSwitchBranchesFix(switchBlock, missingCases).asIntention(); } | createAddMissingEnumBranchesFix |
75,170 | IntentionAction (@NotNull PsiSwitchBlock switchBlock, @NotNull Set<String> missingCases, @NotNull List<String> allNames) { return new CreateSealedClassMissingSwitchBranchesFix(switchBlock, missingCases, allNames).asIntention(); } | createAddMissingSealedClassBranchesFix |
75,171 | IntentionAction (@NotNull PsiSwitchBlock switchBlock, @NotNull PsiClass selectorType, @NotNull Map<PsiType, Set<List<PsiType>>> branches, @NotNull List<? extends PsiCaseLabelElement> elements) { CreateMissingDeconstructionRecordClassBranchesFix fix = CreateMissingDeconstructionRecordClassBranchesFix.create(switchBlock,... | createAddMissingRecordClassBranchesFix |
75,172 | IntentionAction (@NotNull PsiSwitchBlock switchBlock, @IntentionName String message) { return new CreateDefaultBranchFix(switchBlock, message).asIntention(); } | createAddSwitchDefaultFix |
75,173 | IntentionAction (@NotNull PsiAnnotation annotation) { return CollapseAnnotationsFix.from(annotation); } | createCollapseAnnotationsFix |
75,174 | IntentionAction () { return new ChangeModifierIntention(true); } | createChangeModifierFix |
75,175 | IntentionAction (@NotNull PsiSwitchLabeledRuleStatement rule) { return new WrapSwitchRuleStatementsIntoBlockFix(rule).asIntention(); } | createWrapSwitchRuleStatementsIntoBlockFix |
75,176 | IntentionAction (@NotNull PsiMethod method) { return new AddParameterListFix(method).asIntention(); } | createAddParameterListFix |
75,177 | IntentionAction (@NotNull PsiClass psiClass) { return new AddEmptyRecordHeaderFix(psiClass).asIntention(); } | createAddEmptyRecordHeaderFix |
75,178 | IntentionAction () { return new CreateFieldFromParameterAction(true); } | createCreateFieldFromParameterFix |
75,179 | IntentionAction () { return new AssignFieldFromParameterAction(true).asIntention(); } | createAssignFieldFromParameterFix |
75,180 | IntentionAction (@NotNull PsiIdentifier classIdentifier) { return new FillPermitsListFix(classIdentifier).asIntention(); } | createFillPermitsListFix |
75,181 | IntentionAction (@NotNull PsiClass subClass, @NotNull PsiClass superClass) { return new AddToPermitsListFix(subClass, superClass).asIntention(); } | createAddToPermitsListFix |
75,182 | IntentionAction (@NotNull PsiClass classToMove, @NotNull String packageName) { return new MoveToPackageFix(classToMove.getContainingFile(), packageName); } | createMoveClassToPackageFix |
75,183 | List<IntentionAction> (@NotNull PsiJavaCodeReferenceElement subclassRef, @NotNull PsiClass parentClass, @NotNull PsiClass subClass) { ModCommandAction fix = ImplementOrExtendFix.createFix(subClass, parentClass); return fix == null ? List.of() : List.of(fix.asIntention()); } | createExtendSealedClassFixes |
75,184 | IntentionAction (@NotNull PsiClass classFromPermitsList) { return new SealClassFromPermitsListAction(classFromPermitsList).asIntention(); } | createSealClassFromPermitsListFix |
75,185 | IntentionAction (@NotNull String className) { return new UnimplementInterfaceAction.RemoveDuplicateExtendFix(className).asIntention(); } | createRemoveDuplicateExtendsAction |
75,186 | IntentionAction (@NotNull PsiErrorElement errorElement) { return new MoveMemberIntoClassFix(errorElement).asIntention(); } | createMoveMemberIntoClassFix |
75,187 | IntentionAction (@NotNull PsiReceiverParameter parameter, @NotNull PsiType newType) { return new ReceiverParameterTypeFix(parameter, newType).asIntention(); } | createReceiverParameterTypeFix |
75,188 | String () { return QuickFixBundle.message("fix.receiver.parameter.type.text"); } | getText |
75,189 | String () { return QuickFixBundle.message("fix.receiver.parameter.type.family"); } | getFamilyName |
75,190 | IntentionAction (@NotNull PsiClass aClass) { return new ConvertInterfaceToClassIntention(aClass).asIntention(); } | createConvertInterfaceToClassFix |
75,191 | IntentionAction (@NotNull PsiArrayInitializerMemberValue arrayValue) { UnwrapArrayInitializerMemberValueAction fix = UnwrapArrayInitializerMemberValueAction.createFix(arrayValue); return fix == null ? null : fix.asIntention(); } | createUnwrapArrayInitializerMemberValueAction |
75,192 | IntentionAction (@NotNull PsiExpression expression) { return new IntroduceVariableErrorFixAction(expression); } | createIntroduceVariableAction |
75,193 | IntentionAction (@NotNull PsiExpression expression) { return new ConvertExpressionToReturnFix(expression).asIntention(); } | createInsertReturnFix |
75,194 | IntentionAction (@NotNull PsiExpression expression) { return new IterateOverIterableIntention(expression); } | createIterateFix |
75,195 | IntentionAction (@NotNull PsiCaseLabelElement labelElement) { return new DeleteSwitchLabelFix(labelElement, false).asIntention(); } | createDeleteSwitchLabelFix |
75,196 | IntentionAction (@NotNull PsiFile file, @NotNull PsiElement duplicateElement) { ProblemDescriptor descriptor = new ProblemDescriptorBase(duplicateElement, duplicateElement, "", null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, false, null, false, false); return new LocalQuickFixAsIntentionAdapter(new UnnecessaryDefa... | createDeleteDefaultFix |
75,197 | IntentionAction (@NotNull PsiAnnotation annotation, @NotNull PsiAnnotation.TargetType target) { return new AddAnnotationTargetFix(annotation, target).asIntention(); } | createAddAnnotationTargetFix |
75,198 | IntentionAction (@NotNull PsiNameValuePair pair) { final PsiReference reference = pair.getReference(); if (reference == null) return null; final PsiMethod resolved = ObjectUtils.tryCast(reference.resolve(), PsiMethod.class); if (resolved == null) return null; final PsiType returnType = resolved.getReturnType(); if (!(r... | createMergeDuplicateAttributesFix |
75,199 | IntentionAction (@NotNull PsiCaseLabelElement moveBeforeLabel, @NotNull PsiCaseLabelElement labelElement) { return new MoveSwitchBranchUpFix(moveBeforeLabel, labelElement).asIntention(); } | createMoveSwitchBranchUpFix |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.