void (JPanel optionsPanel) { super.addUsagesOptions(optionsPanel); KtNamedDeclaration property = (KtNamedDeclaration) getPsiElement(); if (property.hasModifier(KtTokens.OVERRIDE_KEYWORD) || property.hasModifier(KtTokens.OPEN_KEYWORD) || property instanceof KtParameter && !((KtParameter) property).hasValOrVar()) { searchForBase = createCheckbox(JavaBundle.message("find.options.include.accessors.base.checkbox"), getFindUsagesOptions().isSearchForBaseAccessors, true); JComponent decoratedCheckbox = new ComponentPanelBuilder(searchForBase). withComment(JavaBundle.message("find.options.include.accessors.base.checkbox.comment")).createPanel(); decoratedCheckbox.setAlignmentX(Component.LEFT_ALIGNMENT); optionsPanel.add(decoratedCheckbox); } if (property instanceof KtParameter) { searchInOverridingMethods = addCheckboxToPanel(JavaBundle.message("find.options.search.overriding.methods.checkbox"), getFindUsagesOptions().isSearchInOverridingMethods, optionsPanel, true); } if (isOpen(property)) { overrideUsages = addCheckboxToPanel( isAbstract(property) ? KotlinBundle.message("find.declaration.implementing.properties.checkbox") : KotlinBundle.message("find.declaration.overriding.properties.checkbox"), getFindUsagesOptions().getSearchOverrides(), optionsPanel, true ); } boolean isActual = PsiUtilsKt.hasActualModifier(property); KotlinPropertyFindUsagesOptions options = getFindUsagesOptions(); if (isActual) { expectedUsages = addCheckboxToPanel( KotlinBundle.message("find.usages.checkbox.name.expected.properties"), options.getSearchExpected(), optionsPanel, false ); } if (isDataClassConstructorProperty(property)) { JCheckBox dataClassComponentCheckBox = new JCheckBox(KotlinBundle.message("find.usages.checkbox.text.fast.data.class.component.search")); dataClassComponentCheckBox.setToolTipText(KotlinBundle.message( "find.usages.tool.tip.text.disable.search.for.data.class.components.and.destruction.declarations.project.wide.setting")); Project project = property.getProject(); dataClassComponentCheckBox.setSelected(getDisableComponentAndDestructionSearch(project)); optionsPanel.add(dataClassComponentCheckBox); dataClassComponentCheckBox.addActionListener( ___ -> setDisableComponentAndDestructionSearch(project, dataClassComponentCheckBox.isSelected()) ); } }