void (JPanel optionsPanel) { super.addUsagesOptions(optionsPanel); KtNamedDeclaration method = (KtNamedDeclaration) myUsagesHandler.getPsiElement(); if (isOpen(method)) { overrideUsages = addCheckboxToPanel( isAbstract(method) ? KotlinBundle.message("find.declaration.implementing.methods.checkbox") : KotlinBundle.message("find.declaration.overriding.methods.checkbox"), getFindUsagesOptions().getSearchOverrides(), optionsPanel, true ); } if (!Utils.renameCheckbox( optionsPanel, JavaBundle.message("find.options.include.overloaded.methods.checkbox"), KotlinBundle.message("find.declaration.include.overloaded.methods.checkbox") )) { addCheckboxToPanel( KotlinBundle.message("find.declaration.include.overloaded.methods.checkbox"), FindSettings.getInstance().isSearchOverloadedMethods(), optionsPanel, false ); } PsiElement element = LightClassUtilsKt.getUnwrapped(getPsiElement()); //noinspection ConstantConditions KtDeclaration function = element instanceof KtNamedDeclaration ? (KtNamedDeclaration) element : ((KtLightMethod) element).getKotlinOrigin(); boolean isActual = function != null && PsiUtilsKt.hasActualModifier(function); KotlinFunctionFindUsagesOptions options = getFindUsagesOptions(); if (isActual) { expectedUsages = addCheckboxToPanel( KotlinBundle.message("find.usages.checkbox.name.expected.functions"), options.getSearchExpected(), optionsPanel, false ); } }