block lambda -> expr lambda
authorAnna.Kozlova <anna.kozlova@jetbrains.com>
Tue, 24 May 2016 10:25:16 +0000 (12:25 +0200)
committerAnna.Kozlova <anna.kozlova@jetbrains.com>
Tue, 24 May 2016 10:27:58 +0000 (12:27 +0200)
686 files changed:
java/compiler/impl/testSrc/com/intellij/compiler/BaseCompilerTestCase.java
java/debugger/impl/src/com/intellij/debugger/actions/ExportThreadsAction.java
java/debugger/impl/src/com/intellij/debugger/actions/ForceEarlyReturnAction.java
java/debugger/impl/src/com/intellij/debugger/actions/ToggleFieldBreakpointAction.java
java/debugger/impl/src/com/intellij/debugger/engine/JavaStackFrame.java
java/debugger/impl/src/com/intellij/debugger/engine/JavaValue.java
java/debugger/impl/src/com/intellij/debugger/ui/AlternativeSourceNotificationProvider.java
java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointManager.java
java/execution/impl/src/com/intellij/execution/application/ApplicationRunLineMarkerProvider.java
java/execution/impl/src/com/intellij/execution/impl/DefaultJavaProgramRunner.java
java/execution/impl/src/com/intellij/execution/testDiscovery/TestDiscoveryExtension.java
java/idea-ui/src/com/intellij/ide/impl/NewProjectUtil.java
java/idea-ui/src/com/intellij/ide/projectWizard/ProjectTypeStep.java
java/idea-ui/src/com/intellij/ide/util/newProjectWizard/modes/ImportMode.java
java/idea-ui/src/com/intellij/ide/util/projectWizard/JdkChooserPanel.java
java/idea-ui/src/com/intellij/openapi/projectRoots/ui/SdkEditor.java
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/IdeaProjectSettingsService.java
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ModulesConfigurator.java
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/libraryEditor/LibraryRootsComponent.java
java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/projectRoot/ModuleStructureConfigurable.java
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/actions/SuppressWarningsFoldingBuilder.java
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/DeleteRepeatedInterfaceFix.java
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/FlipIntersectionSidesFix.java
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/SimplifyBooleanExpressionFix.java
java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaInstructionState.java
java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaMemoryStateImpl.java
java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/DfaUtil.java
java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/MethodContract.java
java/java-analysis-impl/src/com/intellij/codeInspection/nullable/NullableStuffInspectionBase.java
java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefClassImpl.java
java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefFieldImpl.java
java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefMethodImpl.java
java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefPackageImpl.java
java/java-analysis-impl/src/com/intellij/codeInspection/reference/RefParameterImpl.java
java/java-analysis-impl/src/com/intellij/codeInspection/unusedLibraries/UnusedLibrariesInspection.java
java/java-impl/src/com/intellij/codeInsight/ExternalAnnotationsManagerImpl.java
java/java-impl/src/com/intellij/codeInsight/MakeInferredAnnotationExplicit.java
java/java-impl/src/com/intellij/codeInsight/completion/JavaCompletionUtil.java
java/java-impl/src/com/intellij/codeInsight/completion/JavaSmartCompletionContributor.java
java/java-impl/src/com/intellij/codeInsight/completion/SameSignatureCallParametersProvider.java
java/java-impl/src/com/intellij/codeInsight/completion/TypeArgumentCompletionProvider.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/actions/AddImportAction.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AddExceptionFromFieldInitializerToConstructorThrowsFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AddMethodQualifierFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/ChangeMethodSignatureFromUsageFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/ChangeParameterClassFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateConstructorParameterFromFieldFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateEnumConstantFromUsageFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateFromUsageBaseFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateMethodFromMethodReferenceFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreatePropertyFromUsageFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/CreateStaticMethodQuickFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/InitializeFinalFieldInConstructorFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/OrderEntryFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/quickFix/CreateClassOrPackageFix.java
java/java-impl/src/com/intellij/codeInsight/daemon/quickFix/RedundantLambdaParameterTypeIntention.java
java/java-impl/src/com/intellij/codeInsight/editorActions/CopyPasteReferenceProcessor.java
java/java-impl/src/com/intellij/codeInsight/generation/GenerateAccessorProviderRegistrar.java
java/java-impl/src/com/intellij/codeInsight/generation/GenerateConstructorHandler.java
java/java-impl/src/com/intellij/codeInsight/generation/JavaOverrideImplementMemberChooser.java
java/java-impl/src/com/intellij/codeInsight/generation/OverrideImplementUtil.java
java/java-impl/src/com/intellij/codeInsight/hint/api/impls/ReferenceParameterInfoHandler.java
java/java-impl/src/com/intellij/codeInsight/intention/impl/CopyAbstractMethodImplementationHandler.java
java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocInfoGenerator.java
java/java-impl/src/com/intellij/codeInsight/template/macro/GroovyScriptMacro.java
java/java-impl/src/com/intellij/codeInsight/template/postfix/templates/JavaPostfixTemplateProvider.java
java/java-impl/src/com/intellij/codeInspection/CollectionAddAllCanBeReplacedWithConstructorInspection.java
java/java-impl/src/com/intellij/codeInspection/emptyMethod/EmptyMethodInspection.java
java/java-impl/src/com/intellij/codeInspection/inferNullity/InferNullityAnnotationsAction.java
java/java-impl/src/com/intellij/codeInspection/inferNullity/NullityInferrer.java
java/java-impl/src/com/intellij/codeInspection/java18StreamApi/AddMethodsDialog.java
java/java-impl/src/com/intellij/codeInspection/java18StreamApi/PseudoLambdaReplaceTemplate.java
java/java-impl/src/com/intellij/ide/hierarchy/method/OverrideImplementMethodAction.java
java/java-impl/src/com/intellij/internal/StaticIconFieldsAction.java
java/java-impl/src/com/intellij/openapi/projectRoots/impl/JavaSdkImpl.java
java/java-impl/src/com/intellij/openapi/roots/impl/LanguageLevelUsagesCollector.java
java/java-impl/src/com/intellij/psi/refResolve/RefResolveServiceImpl.java
java/java-impl/src/com/intellij/psi/stubsHierarchy/impl/PsiEnter.java
java/java-impl/src/com/intellij/psi/stubsHierarchy/impl/PsiHierachyConnector.java
java/java-impl/src/com/intellij/psi/stubsHierarchy/impl/test/TestStubHierarchyAction.java
java/java-impl/src/com/intellij/refactoring/changeClassSignature/TypeParameterInfo.java
java/java-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodProcessor.java
java/java-impl/src/com/intellij/refactoring/extractMethodObject/ExtractMethodObjectHandler.java
java/java-impl/src/com/intellij/refactoring/extractclass/ExtractClassProcessor.java
java/java-impl/src/com/intellij/refactoring/inline/InlineMethodProcessor.java
java/java-impl/src/com/intellij/refactoring/inline/InlineToAnonymousClassHandler.java
java/java-impl/src/com/intellij/refactoring/inlineSuperClass/usageInfo/ReplaceConstructorUsageInfo.java
java/java-impl/src/com/intellij/refactoring/inlineSuperClass/usageInfo/ReplaceReferenceUsageInfo.java
java/java-impl/src/com/intellij/refactoring/inlineSuperClass/usageInfo/ReplaceStaticImportUsageInfo.java
java/java-impl/src/com/intellij/refactoring/inlineSuperClass/usageInfo/ReplaceWithSubtypeUsageInfo.java
java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/MoveClassToInnerProcessor.java
java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/MoveClassesOrPackagesDialog.java
java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/MoveClassesOrPackagesImpl.java
java/java-impl/src/com/intellij/refactoring/move/moveClassesOrPackages/MoveClassesOrPackagesUtil.java
java/java-impl/src/com/intellij/refactoring/move/moveInner/MoveInnerProcessor.java
java/java-impl/src/com/intellij/refactoring/safeDelete/JavaSafeDeleteDelegateImpl.java
java/java-impl/src/com/intellij/refactoring/safeDelete/JavaSafeDeleteProcessor.java
java/java-impl/src/com/intellij/refactoring/safeDelete/SafeDeleteJavaCalleeChooser.java
java/java-impl/src/com/intellij/refactoring/safeDelete/SafeDeleteJavaCallerChooser.java
java/java-impl/src/com/intellij/refactoring/turnRefsToSuper/TurnRefsToSuperProcessorBase.java
java/java-impl/src/com/intellij/refactoring/typeMigration/TypeEvaluator.java
java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java
java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationProcessor.java
java/java-impl/src/com/intellij/refactoring/typeMigration/ui/MigrationPanel.java
java/java-impl/src/com/intellij/refactoring/util/InlineUtil.java
java/java-impl/src/com/intellij/refactoring/util/duplicates/MethodDuplicatesHandler.java
java/java-impl/src/com/intellij/testIntegration/createTest/GenerateMissedTestsAction.java
java/java-impl/src/com/intellij/testIntegration/createTest/JavaTestGenerator.java
java/java-impl/src/com/intellij/testIntegration/createTest/MissedTestsDialog.java
java/java-impl/src/com/intellij/unscramble/UnscrambleDialog.java
java/java-indexing-impl/src/com/intellij/psi/impl/search/AllClassesSearchExecutor.java
java/java-indexing-impl/src/com/intellij/psi/impl/search/JavaFunctionalExpressionSearcher.java
java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/InferenceVariable.java
java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/constraints/StrictSubtypingConstraint.java
java/java-psi-impl/src/com/intellij/psi/impl/source/resolve/graphInference/constraints/TypeEqualityConstraint.java
java/java-tests/testSrc/com/intellij/codeInsight/ExternalJavadocUrlsTest.java
java/java-tests/testSrc/com/intellij/codeInsight/GenerateEquals15Test.java
java/java-tests/testSrc/com/intellij/codeInsight/GenerateEqualsTestCase.java
java/java-tests/testSrc/com/intellij/codeInsight/GenerateSuperMethodCallTest.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/HighlightStressTest.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/UnusedSymbolLocalTest.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/impl/DaemonRespondToChangesTest.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/impl/JavaGotoSuperTest.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/I18nizeTest.java
java/java-tests/testSrc/com/intellij/codeInsight/daemon/quickFix/OrderEntryTest.java
java/java-tests/testSrc/com/intellij/codeInsight/generation/surroundWith/JavaSurroundWithTest.java
java/java-tests/testSrc/com/intellij/codeInsight/indentOptionsProvider/FileIndentProviderTest.java
java/java-tests/testSrc/com/intellij/codeInsight/intention/SplitIfActionTest.java
java/java-tests/testSrc/com/intellij/codeInsight/navigation/RunLineMarkerTest.java
java/java-tests/testSrc/com/intellij/codeInsight/psi/ControlFlowTest.java
java/java-tests/testSrc/com/intellij/codeInsight/template/TemplateBuilderTest.java
java/java-tests/testSrc/com/intellij/find/FindManagerTest.java
java/java-tests/testSrc/com/intellij/openapi/editor/impl/FoldingProcessingOnDocumentModificationTest.java
java/java-tests/testSrc/com/intellij/openapi/roots/impl/DirectoryIndexTest.java
java/java-tests/testSrc/com/intellij/openapi/roots/impl/ProjectLibrariesTest.java
java/java-tests/testSrc/com/intellij/projectView/ProjectViewUpdatingTest.java
java/java-tests/testSrc/com/intellij/psi/ArrayIndexOutOfBoundsTest.java
java/java-tests/testSrc/com/intellij/psi/CodeFragmentsTest.java
java/java-tests/testSrc/com/intellij/psi/LibraryOrderTest.java
java/java-tests/testSrc/com/intellij/psi/MiscPsiTest.java
java/java-tests/testSrc/com/intellij/psi/NormalizeDeclarationTest.java
java/java-tests/testSrc/com/intellij/psi/PsiConcurrencyStressTest.java
java/java-tests/testSrc/com/intellij/psi/PsiModificationTrackerTest.java
java/java-tests/testSrc/com/intellij/psi/SrcRepositoryUseTest.java
java/java-tests/testSrc/com/intellij/psi/TreeIsCorrectAfterDiffReparseTest.java
java/java-tests/testSrc/com/intellij/psi/formatter/java/DefaultProjectFormatterTest.java
java/java-tests/testSrc/com/intellij/psi/formatter/java/JavaFormatterInEditorTest.java
java/java-tests/testSrc/com/intellij/psi/impl/file/impl/PsiEventsTest.java
java/java-tests/testSrc/com/intellij/psi/impl/file/impl/TempFileSystemTest.java
java/java-tests/testSrc/com/intellij/psi/impl/smartPointers/SmartPsiElementPointersTest.java
java/java-tests/testSrc/com/intellij/psi/impl/source/tree/java/ExtendsBoundListTest.java
java/java-tests/testSrc/com/intellij/psi/impl/source/tree/java/JavadocParamTagsTest.java
java/java-tests/testSrc/com/intellij/psi/resolve/ResolvePerformanceTest.java
java/java-tests/testSrc/com/intellij/refactoring/ChangeSignatureTest.java
java/java-tests/testSrc/com/intellij/refactoring/CopyClassTest.java
java/java-tests/testSrc/com/intellij/refactoring/MoveMembersTest.java
java/java-tests/testSrc/com/intellij/refactoring/SafeDeleteTest.java
java/java-tests/testSrc/com/intellij/refactoring/TurnRefsToSuperTest.java
java/java-tests/testSrc/com/intellij/roots/InheritedJdkTest.java
java/java-tests/testSrc/com/intellij/roots/ManagingContentRootsTest.java
java/java-tests/testSrc/com/intellij/roots/MultiModuleEditingTest.java
java/java-tests/testSrc/com/intellij/roots/libraries/LibraryTest.java
java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java
java/testFramework/src/com/intellij/codeInsight/completion/CompletionTestCase.java
java/testFramework/src/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java
java/testFramework/src/com/intellij/ide/projectWizard/ProjectWizardTestCase.java
java/testFramework/src/com/intellij/refactoring/MultiFileTestCase.java
java/testFramework/src/com/intellij/testFramework/ResolveTestCase.java
java/testFramework/src/com/intellij/testFramework/TestSourceBasedTestCase.java
java/typeMigration/test/com/intellij/refactoring/TypeMigrationTestBase.java
json/src/com/intellij/json/structureView/JsonStructureViewElement.java
json/src/com/jetbrains/jsonSchema/impl/JsonBySchemaObjectAnnotator.java
json/src/com/jetbrains/jsonSchema/impl/JsonSchemaServiceImpl.java
json/tests/test/com/jetbrains/jsonSchema/JsonSchemaCrossReferencesTest.java
json/tests/test/com/jetbrains/jsonSchema/schemaFile/JsonSchemaFileResolveTest.java
platform/analysis-api/src/com/intellij/analysis/AnalysisScope.java
platform/analysis-api/src/com/intellij/codeInsight/intention/IntentionActionBean.java
platform/analysis-impl/src/com/intellij/codeInsight/daemon/InspectionProfileConvertor.java
platform/analysis-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfo.java
platform/analysis-impl/src/com/intellij/codeInspection/SuppressIntentionActionFromFix.java
platform/analysis-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextBase.java
platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java
platform/analysis-impl/src/com/intellij/codeInspection/reference/RefDirectoryImpl.java
platform/analysis-impl/src/com/intellij/codeInspection/reference/RefEntityImpl.java
platform/analysis-impl/src/com/intellij/codeInspection/reference/RefFileImpl.java
platform/analysis-impl/src/com/intellij/codeInspection/reference/RefModuleImpl.java
platform/analysis-impl/src/com/intellij/psi/impl/source/resolve/reference/impl/providers/NullFileReferenceHelper.java
platform/diff-impl/src/com/intellij/diff/DiffContentFactoryImpl.java
platform/diff-impl/src/com/intellij/diff/actions/DocumentsSynchronizer.java
platform/diff-impl/src/com/intellij/diff/impl/CacheDiffRequestProcessor.java
platform/diff-impl/src/com/intellij/diff/impl/DiffWindowBase.java
platform/diff-impl/src/com/intellij/diff/merge/TextMergeChange.java
platform/diff-impl/src/com/intellij/diff/merge/TextMergeViewer.java
platform/diff-impl/src/com/intellij/diff/requests/TextMergeRequestImpl.java
platform/diff-impl/src/com/intellij/diff/tools/ErrorDiffTool.java
platform/diff-impl/src/com/intellij/diff/tools/binary/TwosideBinaryDiffViewer.java
platform/diff-impl/src/com/intellij/diff/tools/external/ExternalDiffToolUtil.java
platform/diff-impl/src/com/intellij/diff/tools/fragmented/UnifiedDiffViewer.java
platform/diff-impl/src/com/intellij/diff/tools/simple/SimpleDiffChange.java
platform/diff-impl/src/com/intellij/diff/tools/simple/SimpleDiffViewer.java
platform/diff-impl/src/com/intellij/diff/tools/util/SyncScrollSupport.java
platform/diff-impl/src/com/intellij/diff/tools/util/TransferableFileEditorStateSupport.java
platform/diff-impl/src/com/intellij/diff/tools/util/base/HighlightingLevel.java
platform/diff-impl/src/com/intellij/diff/util/DiffUtil.java
platform/indexing-impl/src/com/intellij/psi/impl/search/PsiSearchHelperImpl.java
platform/lang-api/src/com/intellij/codeInsight/daemon/RelatedItemLineMarkerInfo.java
platform/lang-api/src/com/intellij/execution/RunManager.java
platform/lang-api/src/com/intellij/facet/frameworks/beans/ArtifactItem.java
platform/lang-api/src/com/intellij/facet/ui/FacetDependentToolWindow.java
platform/lang-api/src/com/intellij/ide/util/projectWizard/ModuleBuilder.java
platform/lang-impl/src/com/intellij/codeInsight/AutoPopupController.java
platform/lang-impl/src/com/intellij/codeInsight/actions/AbstractLayoutCodeProcessor.java
platform/lang-impl/src/com/intellij/codeInsight/completion/StatisticsWeigher.java
platform/lang-impl/src/com/intellij/codeInsight/completion/actions/HippieWordCompletionHandler.java
platform/lang-impl/src/com/intellij/codeInsight/completion/impl/LiftShorterItemsClassifier.java
platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/GutterIntentionAction.java
platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionHintComponent.java
platform/lang-impl/src/com/intellij/codeInsight/intention/impl/QuickEditHandler.java
platform/lang-impl/src/com/intellij/codeInsight/intention/impl/config/IntentionDescriptionPanel.java
platform/lang-impl/src/com/intellij/codeInsight/lookup/ComparingClassifier.java
platform/lang-impl/src/com/intellij/codeInsight/navigation/BackgroundUpdaterTask.java
platform/lang-impl/src/com/intellij/codeInsight/template/actions/SaveAsTemplateAction.java
platform/lang-impl/src/com/intellij/codeInsight/template/impl/EditVariableDialog.java
platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateLookupActionProvider.java
platform/lang-impl/src/com/intellij/codeInsight/template/impl/LiveTemplateSettingsEditor.java
platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateManagerImpl.java
platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateState.java
platform/lang-impl/src/com/intellij/codeInsight/template/postfix/templates/PostfixLiveTemplate.java
platform/lang-impl/src/com/intellij/codeInsight/template/postfix/templates/PostfixTemplateWithExpressionSelector.java
platform/lang-impl/src/com/intellij/codeInspection/InspectionApplication.java
platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionManagerEx.java
platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionProfileManagerImpl.java
platform/lang-impl/src/com/intellij/execution/configuration/EnvironmentVariablesTextFieldWithBrowseButton.java
platform/lang-impl/src/com/intellij/execution/console/LanguageConsoleImpl.java
platform/lang-impl/src/com/intellij/execution/console/RunIdeConsoleAction.java
platform/lang-impl/src/com/intellij/execution/impl/statistics/AbstractRunConfigurationTypeUsagesCollector.java
platform/lang-impl/src/com/intellij/execution/lineMarker/ExecutorAction.java
platform/lang-impl/src/com/intellij/execution/startup/ProjectStartupConfigurationBase.java
platform/lang-impl/src/com/intellij/execution/ui/layout/impl/RunnerContentUi.java
platform/lang-impl/src/com/intellij/facet/impl/invalid/MultipleInvalidFacetEditor.java
platform/lang-impl/src/com/intellij/facet/impl/statistics/FrameworkUsagesCollector.java
platform/lang-impl/src/com/intellij/facet/impl/statistics/ModuleTypeUsagesCollector.java
platform/lang-impl/src/com/intellij/find/findUsages/FindUsagesManager.java
platform/lang-impl/src/com/intellij/find/findUsages/PsiElement2UsageTargetComposite.java
platform/lang-impl/src/com/intellij/find/impl/FindDialog.java
platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java
platform/lang-impl/src/com/intellij/formatting/contextConfiguration/SelectedTextFormatter.java
platform/lang-impl/src/com/intellij/ide/actions/ApplyIntentionAction.java
platform/lang-impl/src/com/intellij/ide/favoritesTreeView/FavoritesManager.java
platform/lang-impl/src/com/intellij/ide/favoritesTreeView/UsageProjectTreeNode.java
platform/lang-impl/src/com/intellij/ide/fileTemplates/actions/CreateFromTemplateActionBase.java
platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/AllFileTemplatesConfigurable.java
platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/FileTemplateTabAsTree.java
platform/lang-impl/src/com/intellij/ide/impl/PatchProjectUtil.java
platform/lang-impl/src/com/intellij/ide/navigationToolbar/NavBarModel.java
platform/lang-impl/src/com/intellij/ide/projectView/BaseProjectTreeBuilder.java
platform/lang-impl/src/com/intellij/ide/projectView/impl/RenameModuleHandler.java
platform/lang-impl/src/com/intellij/ide/scopeView/EditScopesAction.java
platform/lang-impl/src/com/intellij/ide/scopeView/ScopeTreeViewPanel.java
platform/lang-impl/src/com/intellij/ide/scopeView/ScopeViewPane.java
platform/lang-impl/src/com/intellij/ide/scratch/LRUPopupBuilder.java
platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java
platform/lang-impl/src/com/intellij/ide/util/PlatformPackageUtil.java
platform/lang-impl/src/com/intellij/ide/util/TreeFileChooserDialog.java
platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionItemProvider.java
platform/lang-impl/src/com/intellij/internal/psiView/formattingblocks/BlockTreeNode.java
platform/lang-impl/src/com/intellij/openapi/fileChooser/actions/GotoModuleDirectory.java
platform/lang-impl/src/com/intellij/openapi/fileTypes/FileTypeUsagesCollector.java
platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/SdkConfigurationUtil.java
platform/lang-impl/src/com/intellij/openapi/roots/impl/libraries/RenameLibraryHandler.java
platform/lang-impl/src/com/intellij/openapi/roots/ui/configuration/PlatformContentEntriesConfigurable.java
platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java
platform/lang-impl/src/com/intellij/packageDependencies/ui/DependenciesPanel.java
platform/lang-impl/src/com/intellij/packageDependencies/ui/DependenciesUsagesPanel.java
platform/lang-impl/src/com/intellij/platform/ModuleAttachProcessor.java
platform/lang-impl/src/com/intellij/platform/renameProject/RenameProjectHandler.java
platform/lang-impl/src/com/intellij/platform/templates/SaveProjectAsTemplateDialog.java
platform/lang-impl/src/com/intellij/profile/codeInspection/ui/InspectionsAggregationUtil.java
platform/lang-impl/src/com/intellij/profile/codeInspection/ui/SingleInspectionProfilePanel.java
platform/lang-impl/src/com/intellij/profile/codeInspection/ui/table/ScopesAndSeveritiesTable.java
platform/lang-impl/src/com/intellij/profile/codeInspection/ui/table/SeverityRenderer.java
platform/lang-impl/src/com/intellij/psi/codeStyle/CodeStyleSettingsCodeFragmentFilter.java
platform/lang-impl/src/com/intellij/psi/formatter/common/InjectedLanguageBlockWrapper.java
platform/lang-impl/src/com/intellij/psi/impl/source/PostprocessReformattingAspect.java
platform/lang-impl/src/com/intellij/psi/impl/source/tree/injected/MultiHostRegistrarImpl.java
platform/lang-impl/src/com/intellij/psi/stubs/StubIndexImpl.java
platform/lang-impl/src/com/intellij/psi/stubs/StubProcessingHelper.java
platform/lang-impl/src/com/intellij/psi/templateLanguages/TemplateDataLanguagePatterns.java
platform/lang-impl/src/com/intellij/refactoring/changeSignature/CallerChooserBase.java
platform/lang-impl/src/com/intellij/refactoring/changeSignature/MethodNodeBase.java
platform/lang-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodHelper.java
platform/lang-impl/src/com/intellij/refactoring/introduce/inplace/AbstractInplaceIntroducer.java
platform/lang-impl/src/com/intellij/refactoring/lang/ExtractIncludeFileBase.java
platform/lang-impl/src/com/intellij/refactoring/rename/RenameProcessor.java
platform/lang-impl/src/com/intellij/refactoring/rename/inplace/VariableInplaceRenamer.java
platform/lang-impl/src/com/intellij/refactoring/rename/naming/NameSuggester.java
platform/lang-impl/src/com/intellij/refactoring/ui/RefactoringDialog.java
platform/lang-impl/src/com/intellij/ui/debugger/extensions/PlaybackDebugger.java
platform/lang-impl/src/com/intellij/usageView/UsageViewUtil.java
platform/lang-impl/src/com/intellij/util/LogicalRootsManagerImpl.java
platform/lang-impl/src/com/intellij/webcore/packaging/InstalledPackagesPanel.java
platform/lang-impl/src/com/intellij/webcore/packaging/ManagePackagesDialog.java
platform/lvcs-impl/src/com/intellij/history/integration/IdeaGateway.java
platform/platform-api/src/com/intellij/execution/util/ExecUtil.java
platform/platform-api/src/com/intellij/ide/util/BrowseFilesListener.java
platform/platform-api/src/com/intellij/openapi/diff/DocumentsSynchronizer.java
platform/platform-api/src/com/intellij/openapi/ui/ComponentWithBrowseButton.java
platform/platform-api/src/com/intellij/openapi/ui/MasterDetailsComponent.java
platform/platform-api/src/com/intellij/ui/EditorNotificationPanel.java
platform/platform-api/src/com/intellij/ui/tabs/impl/TabLabel.java
platform/platform-api/src/com/intellij/util/net/ssl/CertificateTreeBuilder.java
platform/platform-api/src/com/intellij/util/ui/update/MergingUpdateQueue.java
platform/platform-impl/src/com/intellij/diagnostic/GroupedLogMessage.java
platform/platform-impl/src/com/intellij/execution/DelayedDocumentWatcher.java
platform/platform-impl/src/com/intellij/ide/CommandLineProcessor.java
platform/platform-impl/src/com/intellij/ide/MacOSApplicationProvider.java
platform/platform-impl/src/com/intellij/ide/actions/Switcher.java
platform/platform-impl/src/com/intellij/ide/dnd/LinuxDragAndDropSupport.java
platform/platform-impl/src/com/intellij/ide/plugins/DisabledPluginsUsagesCollector.java
platform/platform-impl/src/com/intellij/ide/plugins/InstalledPluginsManagerMain.java
platform/platform-impl/src/com/intellij/ide/plugins/InstalledPluginsTableModel.java
platform/platform-impl/src/com/intellij/ide/plugins/NonBundledPluginsUsagesCollector.java
platform/platform-impl/src/com/intellij/ide/plugins/PluginInstaller.java
platform/platform-impl/src/com/intellij/ide/plugins/PluginManagerConfigurable.java
platform/platform-impl/src/com/intellij/ide/plugins/PluginManagerMain.java
platform/platform-impl/src/com/intellij/ide/plugins/PluginTable.java
platform/platform-impl/src/com/intellij/ide/startupWizard/SelectPluginsStep.java
platform/platform-impl/src/com/intellij/internal/statistic/UsageTrigger.java
platform/platform-impl/src/com/intellij/internal/statistic/connect/StatisticsConnectionService.java
platform/platform-impl/src/com/intellij/notification/EventLog.java
platform/platform-impl/src/com/intellij/notification/impl/NotificationsManagerImpl.java
platform/platform-impl/src/com/intellij/openapi/diff/actions/MergeOperations.java
platform/platform-impl/src/com/intellij/openapi/diff/impl/incrementalMerge/Change.java
platform/platform-impl/src/com/intellij/openapi/diff/impl/incrementalMerge/ui/ApplyNonConflicts.java
platform/platform-impl/src/com/intellij/openapi/diff/impl/mergeTool/MergeVersion.java
platform/platform-impl/src/com/intellij/openapi/editor/impl/CaretModelImpl.java
platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/GotoDesktopDirAction.java
platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/GotoHomeAction.java
platform/platform-impl/src/com/intellij/openapi/fileChooser/actions/GotoProjectDirectory.java
platform/platform-impl/src/com/intellij/openapi/fileChooser/ex/LocalFsFinder.java
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/FileDocumentManagerImpl.java
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/http/HttpFileEditor.java
platform/platform-impl/src/com/intellij/openapi/fileTypes/ex/FileTypeChooser.java
platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/ApproveRemovedMappingsActivity.java
platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java
platform/platform-impl/src/com/intellij/openapi/progress/impl/ProgressManagerImpl.java
platform/platform-impl/src/com/intellij/openapi/progress/util/BackgroundTaskUtil.java
platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressDialog.java
platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectManagerImpl.java
platform/platform-impl/src/com/intellij/openapi/ui/ex/MessagesEx.java
platform/platform-impl/src/com/intellij/openapi/ui/playback/commands/AlphaNumericTypeCommand.java
platform/platform-impl/src/com/intellij/openapi/ui/playback/commands/KeyCodeTypeCommand.java
platform/platform-impl/src/com/intellij/openapi/ui/playback/util/EditorPlaybackCall.java
platform/platform-impl/src/com/intellij/openapi/ui/playback/util/WindowSystemPlaybackCall.java
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/pluginsAdvertisement/PluginsAdvertiser.java
platform/platform-impl/src/com/intellij/openapi/util/RequestsMerger.java
platform/platform-impl/src/com/intellij/openapi/vcs/readOnlyHandler/ReadOnlyStatusDialog.java
platform/platform-impl/src/com/intellij/openapi/vfs/impl/jar/JarFileSystemImpl.java
platform/platform-impl/src/com/intellij/openapi/vfs/impl/local/FileWatcher.java
platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/PersistentFSImpl.java
platform/platform-impl/src/com/intellij/openapi/wm/impl/PaintersHelper.java
platform/platform-impl/src/com/intellij/openapi/wm/impl/welcomeScreen/RecentProjectPanel.java
platform/platform-impl/src/com/intellij/patterns/compiler/PatternCompilerImpl.java
platform/platform-impl/src/com/intellij/platform/OpenDirectoryProjectAction.java
platform/platform-impl/src/com/intellij/platform/PlatformProjectOpenProcessor.java
platform/platform-impl/src/com/intellij/platform/ProjectSetReader.java
platform/platform-impl/src/com/intellij/psi/statistics/impl/StatisticsManagerImpl.java
platform/platform-impl/src/com/intellij/ui/EditorComboBox.java
platform/platform-impl/src/com/intellij/ui/EditorTextField.java
platform/platform-impl/src/com/intellij/ui/FocusTrackback.java
platform/platform-impl/src/com/intellij/ui/TableSpeedSearch.java
platform/platform-impl/src/com/intellij/ui/mac/MacFileChooserDialogImpl.java
platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java
platform/platform-impl/src/com/intellij/ui/popup/PopupFactoryImpl.java
platform/platform-impl/src/com/intellij/util/ui/SwingHelper.java
platform/platform-tests/testSrc/com/intellij/application/options/codeInsight/editor/quotes/SelectionQuotingTypedHandlerTest.java
platform/platform-tests/testSrc/com/intellij/execution/process/AnsiEscapeDecoderTest.java
platform/platform-tests/testSrc/com/intellij/formatting/TestFormattingModel.java
platform/platform-tests/testSrc/com/intellij/history/integration/BasicsTest.java
platform/platform-tests/testSrc/com/intellij/history/integration/IntegrationTestCase.java
platform/platform-tests/testSrc/com/intellij/ide/codeStyleSettings/CodeSamplesCorrectnessTest.java
platform/platform-tests/testSrc/com/intellij/ide/fileTemplates/impl/LightFileTemplatesTest.java
platform/platform-tests/testSrc/com/intellij/module/ModulePointerTest.java
platform/platform-tests/testSrc/com/intellij/openapi/application/impl/ApplicationImplTest.java
platform/platform-tests/testSrc/com/intellij/openapi/application/impl/LaterInvocatorTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/DocumentTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/FoldingTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/EditorImplTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/TrailingSpacesStripperTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/softwrap/mapping/SoftWrapApplianceOnDocumentModificationTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/view/LogicalPositionCacheStressTest.java
platform/platform-tests/testSrc/com/intellij/openapi/editor/richcopy/SyntaxInfoConstructionTest.java
platform/platform-tests/testSrc/com/intellij/openapi/fileEditor/FileDocumentManagerImplTest.java
platform/platform-tests/testSrc/com/intellij/openapi/fileEditor/FileEditorManagerTest.java
platform/platform-tests/testSrc/com/intellij/openapi/fileTypes/FileTypeUsagesCollectorTest.java
platform/platform-tests/testSrc/com/intellij/openapi/fileTypes/impl/FileTypesTest.java
platform/platform-tests/testSrc/com/intellij/openapi/progress/impl/ProgressIndicatorTest.java
platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java
platform/platform-tests/testSrc/com/intellij/psi/impl/PsiDocumentManagerImplTest.java
platform/platform-tests/testSrc/com/intellij/usages/impl/UsageViewTest.java
platform/platform-tests/testSrc/com/intellij/util/JdkBundleTest.java
platform/platform-tests/testSrc/com/intellij/util/concurrency/BoundedTaskExecutorTest.java
platform/platform-tests/testSrc/com/intellij/util/ui/tree/TreeUtilTest.java
platform/projectModel-impl/src/com/intellij/application/options/ReplacePathToMacroMap.java
platform/projectModel-impl/src/com/intellij/openapi/module/impl/ModuleManagerImpl.java
platform/projectModel-impl/src/com/intellij/openapi/projectRoots/impl/ProjectJdkImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/OrderEnumeratorBase.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java
platform/remote-servers/impl/src/com/intellij/remoteServer/impl/configuration/RemoteServerListConfigurable.java
platform/remote-servers/impl/src/com/intellij/remoteServer/impl/runtime/ui/tree/ServersTreeStructure.java
platform/remote-servers/impl/src/com/intellij/remoteServer/util/CloudServerRuntimeInstance.java
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/AbstractImportTestsAction.java
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsGroup.java
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/states/TestComparisonFailedStates.java
platform/structuralsearch/source/com/intellij/structuralsearch/impl/matcher/MatcherImpl.java
platform/structuralsearch/source/com/intellij/structuralsearch/plugin/replace/impl/Replacer.java
platform/structuralsearch/source/com/intellij/structuralsearch/plugin/ui/EditVarConstraintsDialog.java
platform/structuralsearch/source/com/intellij/structuralsearch/plugin/ui/UIUtil.java
platform/testFramework/src/com/intellij/psi/codeStyle/arrangement/AbstractRearrangerTest.java
platform/testFramework/src/com/intellij/psi/formatter/FormatterTestCase.java
platform/testFramework/src/com/intellij/testFramework/LightPlatformCodeInsightTestCase.java
platform/testFramework/src/com/intellij/testFramework/LightPlatformTestCase.java
platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java
platform/testFramework/testSrc/com/intellij/openapi/keymap/KeymapsTestCase.java
platform/usageView/src/com/intellij/usages/impl/SearchForUsagesRunnable.java
platform/usageView/src/com/intellij/usages/impl/UsageViewImpl.java
platform/util/testSrc/com/intellij/openapi/util/io/IoTestUtil.java
platform/util/testSrc/com/intellij/util/diff/DiffTreeTest.java
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/actions/MoveChangesToAnotherListAction.java
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/tool/ApplyPatchChange.java
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/patch/tool/ApplyPatchViewer.java
platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusTracker.java
platform/vcs-impl/src/com/intellij/openapi/vcs/impl/projectlevelman/NewMappings.java
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/VcsLogGraphTable.java
platform/vcs-log/impl/src/com/intellij/vcs/log/util/PersistentUtil.java
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/AttachToLocalProcessAction.java
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/BreakpointsDialog.java
platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestCase.java
platform/xdebugger-impl/testSrc/com/intellij/xdebugger/XDebuggerTestUtil.java
platform/xdebugger-impl/testSrc/com/intellij/xdebugger/impl/actions/AttachToLocalProcessActionTest.java
plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/ProtectedMemberInFinalClassInspection.java
plugins/IntelliLang/java-support/org/intellij/plugins/intelliLang/inject/java/LanguageReference.java
plugins/IntelliLang/java-support/org/intellij/plugins/intelliLang/inject/java/RegExpEnumReference.java
plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/EditInjectionSettingsAction.java
plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/UnInjectLanguageAction.java
plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/config/BaseInjection.java
plugins/IntelliLang/src/org/intellij/plugins/intelliLang/util/StringMatcher.java
plugins/IntentionPowerPak/src/com/siyeh/ipp/interfacetoclass/ConvertInterfaceToClassIntention.java
plugins/IntentionPowerPak/src/com/siyeh/ipp/modifiers/ModifierIntention.java
plugins/ant/src/com/intellij/lang/ant/config/explorer/AntExplorer.java
plugins/ant/src/com/intellij/lang/ant/config/impl/AntConfigurationImpl.java
plugins/copyright/src/com/maddyhome/idea/copyright/actions/AbstractFileProcessor.java
plugins/coverage-common/src/com/intellij/coverage/CoverageSuitesBundle.java
plugins/coverage-common/src/com/intellij/coverage/SrcFileAnnotator.java
plugins/devkit/src/dom/impl/IdeaPluginConverter.java
plugins/devkit/src/dom/impl/PropertyKeyReferenceProvider.java
plugins/devkit/src/inspections/quickfix/CreateHtmlDescriptionFix.java
plugins/devkit/src/projectRoots/IdeaJdkConfigurable.java
plugins/devkit/src/testAssistant/TestCaseAsRelatedFileProvider.java
plugins/devkit/testSources/navigation/DevKitGutterTargetsChecker.java
plugins/eclipse/src/org/jetbrains/idea/eclipse/export/ExportEclipseProjectsAction.java
plugins/eclipse/src/org/jetbrains/idea/eclipse/importWizard/EclipseImportBuilder.java
plugins/generate-tostring/src/org/jetbrains/java/generate/GenerateToStringActionHandlerImpl.java
plugins/github/src/org/jetbrains/plugins/github/GithubCreateGistAction.java
plugins/github/src/org/jetbrains/plugins/github/GithubRebaseAction.java
plugins/github/src/org/jetbrains/plugins/github/tasks/GithubRepository.java
plugins/github/src/org/jetbrains/plugins/github/ui/GithubCreatePullRequestDialog.java
plugins/github/src/org/jetbrains/plugins/github/util/GithubUtil.java
plugins/gradle/testSources/org/jetbrains/plugins/gradle/codeInsight/actions/AddGradleDslPluginActionTest.java
plugins/gradle/testSources/org/jetbrains/plugins/gradle/integrations/maven/codeInsight/actions/AddGradleDslDependencyActionTest.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/confusing/ClashingTraitMethodsInspectionBase.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/codeInspection/type/GroovyTypeCheckVisitor.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/config/GroovyConfigUtils.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/findUsages/LiteralConstructorReference.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/gpp/GppClosureParameterTypeProvider.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/gpp/GppExpectedTypesContributor.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/expectedTypes/GroovyExpectedTypesProvider.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrLiteralClassType.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrMapTypeFromNamedArgs.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GrTraitType.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyNamesUtil.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/typeEnhancers/FromAbstractTypeMethodsHintProcessor.java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/util/LibrariesUtil.java
plugins/groovy/src/org/jetbrains/plugins/groovy/actions/generate/equals/GroovyGenerateEqualsHandler.java
plugins/groovy/src/org/jetbrains/plugins/groovy/annotator/intentions/GrCreateFromUsageBaseFix.java
plugins/groovy/src/org/jetbrains/plugins/groovy/annotator/intentions/dynamic/DynamicManagerImpl.java
plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/ExcludeFromStubGenerationAction.java
plugins/groovy/src/org/jetbrains/plugins/groovy/compiler/GroovyStubNotificationProvider.java
plugins/groovy/src/org/jetbrains/plugins/groovy/config/DefaultGroovyFrameworkConfigNotification.java
plugins/groovy/src/org/jetbrains/plugins/groovy/debugger/GroovyCodeFragmentFactory.java
plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/blocks/GroovyBlockGenerator.java
plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/other/GrAliasImportIntention.java
plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/style/parameterToEntry/ConvertParameterToMapEntryIntention.java
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/completion/GroovyCompletionUtil.java
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/parameterInfo/GroovyTypeParameterInfoHandler.java
plugins/groovy/src/org/jetbrains/plugins/groovy/mvc/MvcModuleStructureUtil.java
plugins/groovy/src/org/jetbrains/plugins/groovy/mvc/MvcProjectWithoutLibraryNotificator.java
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/changeSignature/GrChangeSignatureDialog.java
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/convertToJava/ClassItemGeneratorImpl.java
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrAbstractInplaceIntroducer.java
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/safeDelete/JavaSafeDeleteDelegateForGroovy.java
plugins/groovy/test/org/jetbrains/plugins/groovy/intentions/ConvertMapToClassTest.java
plugins/java-decompiler/engine/test/org/jetbrains/java/decompiler/SingleClassesTest.java
plugins/java-i18n/src/com/intellij/codeInspection/i18n/I18nizeAction.java
plugins/javaFX/src/org/jetbrains/plugins/javaFX/sceneBuilder/SceneBuilderEditor.java
plugins/junit/src/com/intellij/execution/junit/TestObject.java
plugins/junit/src/com/intellij/execution/junit2/configuration/JUnitConfigurationModel.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/generate/GenerateDependencyUtil.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/javadoc/MojoClassAnnotationTagProvider.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/project/MavenProjectsTree.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/server/MavenEmbedderWrapper.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/server/MavenServerManager.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/utils/MavenUtil.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/utils/library/RepositoryAttachHandler.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/utils/library/RepositoryLibrarySupport.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/utils/library/propertiesEditor/RepositoryLibraryPropertiesEditor.java
plugins/maven/src/main/java/org/jetbrains/idea/maven/utils/library/remote/MavenRemoteManager.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/dom/MavenDomTestCase.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/dom/MavenPropertyResolverTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/execution/MavenClasspathsAndSearchScopesTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/importing/WorkingWithOpenProjectTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/project/MavenProjectReaderTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/project/importing/MavenProjectsTreeIgnoresTest.java
plugins/maven/src/test/java/org/jetbrains/idea/maven/project/importing/MavenProjectsTreeReadingTest.java
plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/CustomResourceBundle.java
plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/CustomResourceBundleState.java
plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/ResourceBundleManager.java
plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/ResourceBundleFileStructureViewElement.java
plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/editor/inspections/ResourceBundleEditorInspectionPass.java
plugins/properties/src/com/intellij/lang/properties/PropertiesDocumentationProvider.java
plugins/properties/src/com/intellij/lang/properties/create/CreateResourceBundleDialogComponent.java
plugins/properties/src/com/intellij/lang/properties/editor/GotoResourceBundleLocalizationsProvider.java
plugins/properties/src/com/intellij/lang/properties/editor/NewPropertyAction.java
plugins/properties/src/com/intellij/lang/properties/editor/PropertiesCopyHandler.java
plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleAsVirtualFile.java
plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleEditor.java
plugins/properties/src/com/intellij/lang/properties/editor/ResourceBundleStructureViewComponent.java
plugins/properties/src/com/intellij/lang/properties/editor/inspections/incomplete/IncompletePropertyInspection.java
plugins/properties/src/com/intellij/lang/properties/references/CreatePropertyFix.java
plugins/properties/testSrc/com/intellij/lang/properties/CustomResourceBundleTest.java
plugins/properties/testSrc/com/intellij/lang/properties/PropertiesFileTest.java
plugins/properties/testSrc/com/intellij/lang/properties/ResourceBundleEditorInsertManagerTest.java
plugins/tasks/tasks-api/src/com/intellij/tasks/ui/TaskDialogPanelProvider.java
plugins/tasks/tasks-core/jira/src/com/intellij/tasks/jira/rest/JiraRestApi.java
plugins/tasks/tasks-core/jira/src/com/intellij/tasks/jira/rest/JiraRestTask.java
plugins/tasks/tasks-core/jira/src/com/intellij/tasks/jira/soap/JiraLegacyApi.java
plugins/tasks/tasks-core/jira/src/com/intellij/tasks/jira/soap/JiraSoapTask.java
plugins/tasks/tasks-core/src/com/intellij/tasks/actions/context/LoadContextAction.java
plugins/tasks/tasks-core/src/com/intellij/tasks/bugzilla/BugzillaRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/config/TaskRepositoriesConfigurable.java
plugins/tasks/tasks-core/src/com/intellij/tasks/context/XDebuggerBreakpointsContextProvider.java
plugins/tasks/tasks-core/src/com/intellij/tasks/fogbugz/FogBugzRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/generic/GenericRepositoryUtil.java
plugins/tasks/tasks-core/src/com/intellij/tasks/generic/JsonPathResponseHandler.java
plugins/tasks/tasks-core/src/com/intellij/tasks/gitlab/GitlabRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/impl/TaskCheckinHandlerFactory.java
plugins/tasks/tasks-core/src/com/intellij/tasks/impl/TaskManagerImpl.java
plugins/tasks/tasks-core/src/com/intellij/tasks/impl/TaskStateCombo.java
plugins/tasks/tasks-core/src/com/intellij/tasks/impl/TaskUiUtil.java
plugins/tasks/tasks-core/src/com/intellij/tasks/lighthouse/LighthouseRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/mantis/MantisRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/mantis/MantisTask.java
plugins/tasks/tasks-core/src/com/intellij/tasks/pivotal/PivotalTrackerRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/redmine/RedmineRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/trello/TrelloRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/youtrack/YouTrackIntellisense.java
plugins/tasks/tasks-core/src/com/intellij/tasks/youtrack/YouTrackRepository.java
plugins/tasks/tasks-core/src/com/intellij/tasks/youtrack/lang/codeinsight/YouTrackCompletionContributor.java
plugins/tasks/tasks-java/src/com/intellij/tasks/context/java/BreakpointsContextProvider.java
plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/BugzillaIntegrationTest.java
plugins/tasks/tasks-tests/test/com/intellij/tasks/vcs/TaskVcsTest.java
plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGRunnableState.java
plugins/testng/src/com/theoryinpractice/testng/model/TestNGConfigurationModel.java
plugins/testng/src/com/theoryinpractice/testng/ui/TestNGResults.java
plugins/testng/src/com/theoryinpractice/testng/ui/actions/RerunFailedTestsAction.java
plugins/testng/src/com/theoryinpractice/testng/util/TestNGUtil.java
plugins/ui-designer-core/src/com/intellij/designer/designSurface/InplaceEditingLayer.java
plugins/ui-designer/src/com/intellij/uiDesigner/actions/CreateListenerAction.java
plugins/ui-designer/src/com/intellij/uiDesigner/binding/FormReferenceProvider.java
plugins/ui-designer/src/com/intellij/uiDesigner/designSurface/InplaceEditingLayer.java
plugins/ui-designer/src/com/intellij/uiDesigner/designSurface/InsertComponentProcessor.java
plugins/ui-designer/src/com/intellij/uiDesigner/propertyInspector/properties/BindingProperty.java
plugins/ui-designer/src/com/intellij/uiDesigner/quickFixes/ChangeFieldTypeFix.java
plugins/ui-designer/src/com/intellij/uiDesigner/quickFixes/CreateClassToBindFix.java
plugins/ui-designer/src/com/intellij/uiDesigner/quickFixes/CreateFieldFix.java
plugins/ui-designer/src/com/intellij/uiDesigner/snapShooter/CreateSnapShotAction.java
plugins/ui-designer/testSrc/com/intellij/uiDesigner/make/FormSourceCodeGeneratorTest.java
plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/completion/XPathCompletionContributor.java
plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/impl/XsltIncludeIndex.java
plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/xslt/quickfix/DownloadManager.java
plugins/xpath/xpath-lang/test/org/intellij/lang/xpath/xslt/XsltHighlightingTest.java
plugins/yaml/src/org/jetbrains/yaml/completion/YamlKeyCompletionInsertHandler.java
plugins/yaml/testSrc/org/jetbrains/yaml/psiModification/YAMLMappingModificationTest.java
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCFromCourseArchive.java
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCShowPreview.java
python/educational-core/student/src/com/jetbrains/edu/learning/StudyUtils.java
python/educational-core/student/src/com/jetbrains/edu/learning/checker/StudyCheckUtils.java
python/educational-core/student/src/com/jetbrains/edu/learning/checker/StudySmartChecker.java
python/educational-core/student/src/com/jetbrains/edu/learning/core/EduUtils.java
python/educational-core/student/src/com/jetbrains/edu/learning/courseFormat/Course.java
python/educational-core/student/src/com/jetbrains/edu/learning/courseGeneration/StudyProjectGenerator.java
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/EduStepicConnector.java
python/educational-python/src/com/jetbrains/python/edu/PyCharmEduInitialConfigurator.java
python/educational-python/student-python/src/com/jetbrains/edu/learning/PyStudyCheckAction.java
python/ide/src/com/jetbrains/python/PyCharmInitialConfigurator.java
python/ide/src/com/jetbrains/python/buildout/BuildoutConfigurable.java
python/ide/src/com/jetbrains/python/newProject/PythonBaseProjectGenerator.java
python/openapi/src/com/jetbrains/python/packaging/PyRequirement.java
python/pluginJava/com/jetbrains/python/facet/PythonSdkTableListener.java
python/python-community-configure/src/com/jetbrains/python/configuration/PyActiveSdkConfigurable.java
python/python-community-configure/src/com/jetbrains/python/configuration/PyContentEntriesModuleConfigurable.java
python/python-rest/src/com/jetbrains/rest/sphinx/RunSphinxQuickStartAction.java
python/src/com/jetbrains/python/buildout/BuildoutConfigPanel.java
python/src/com/jetbrains/python/codeInsight/intentions/PyConvertTripleQuotedStringIntention.java
python/src/com/jetbrains/python/codeInsight/override/PyMethodMember.java
python/src/com/jetbrains/python/debugger/attach/PyLocalAttachDebuggerProvider.java
python/src/com/jetbrains/python/documentation/PythonDocumentationProvider.java
python/src/com/jetbrains/python/documentation/docstrings/DocStringFormat.java
python/src/com/jetbrains/python/documentation/docstrings/SectionBasedDocString.java
python/src/com/jetbrains/python/editor/PythonCopyPasteProcessor.java
python/src/com/jetbrains/python/inspections/PyPackageRequirementsInspection.java
python/src/com/jetbrains/python/inspections/PyTypeCheckerInspection.java
python/src/com/jetbrains/python/inspections/quickfix/CompatibilityPrintCallQuickFix.java
python/src/com/jetbrains/python/packaging/PyPackageUtil.java
python/src/com/jetbrains/python/packaging/setupPy/SetupTaskChooserAction.java
python/src/com/jetbrains/python/psi/impl/PyFromImportStatementImpl.java
python/src/com/jetbrains/python/psi/impl/PyImportStatementImpl.java
python/src/com/jetbrains/python/psi/resolve/CompletionVariantsProcessor.java
python/src/com/jetbrains/python/refactoring/PyReplaceExpressionUtil.java
python/src/com/jetbrains/python/refactoring/classes/PyClassRefactoringUtil.java
python/src/com/jetbrains/python/refactoring/move/PyMoveModuleMembersDialog.java
python/src/com/jetbrains/python/refactoring/move/PyMoveModuleMembersProcessor.java
python/src/com/jetbrains/python/sdk/PythonSdkType.java
python/src/com/jetbrains/python/sdk/PythonSdkUpdater.java
python/src/com/jetbrains/python/sdk/skeletons/PySkeletonRefresher.java
python/testSrc/com/jetbrains/commandInterface/commandLine/CommandTestTools.java
python/testSrc/com/jetbrains/env/python/console/PyConsoleTask.java
python/testSrc/com/jetbrains/env/python/debug/PyBaseDebuggerTask.java
python/testSrc/com/jetbrains/python/PyAddImportTest.java
python/testSrc/com/jetbrains/python/PyFormatterTest.java
python/testSrc/com/jetbrains/python/fixtures/PyMultiFileResolveTestCase.java
python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java
python/testSrc/com/jetbrains/python/refactoring/PyInlineLocalTest.java
python/testSrc/com/jetbrains/python/refactoring/PyMoveTest.java
python/testSrc/com/jetbrains/python/refactoring/changeSignature/PyChangeSignatureTest.java
python/testSrc/com/jetbrains/python/refactoring/classes/PyClassRefactoringTest.java
python/testSrc/com/jetbrains/python/sdkTools/PyTestSdkTools.java
spellchecker/src/com/intellij/spellchecker/actions/SpellingPopupActionGroup.java
xml/dom-impl/src/com/intellij/codeInsight/navigation/NavigationGutterIconRenderer.java
xml/dom-impl/src/com/intellij/util/xml/highlighting/DomElementsHighlightingUtil.java
xml/dom-impl/src/com/intellij/util/xml/impl/DomInvocationHandler.java
xml/dom-impl/src/com/intellij/util/xml/impl/DynamicGenericInfo.java
xml/dom-openapi/src/com/intellij/util/xml/model/impl/DomModelImpl.java
xml/dom-openapi/src/com/intellij/util/xml/ui/ComboControl.java
xml/dom-tests/tests/com/intellij/util/xml/DomChildrenTest.java
xml/dom-tests/tests/com/intellij/util/xml/impl/IncrementalUpdateEventsTest.java
xml/dom-tests/tests/com/intellij/util/xml/impl/TreeIncrementalUpdateTest.java
xml/impl/src/com/intellij/codeInsight/daemon/impl/quickfix/FetchExtResourceAction.java
xml/impl/src/com/intellij/codeInsight/daemon/impl/quickfix/IgnoreExtResourceAction.java
xml/impl/src/com/intellij/codeInsight/template/emmet/EmmetPreviewUtil.java
xml/impl/src/com/intellij/codeInsight/template/emmet/ZenCodingTemplate.java
xml/impl/src/com/intellij/codeInsight/template/emmet/filters/BemEmmetFilter.java
xml/impl/src/com/intellij/codeInsight/template/emmet/filters/TrimZenCodingFilter.java
xml/impl/src/com/intellij/javaee/EditLocationDialog.java
xml/impl/src/com/intellij/xml/actions/EscapeEntitiesAction.java
xml/impl/src/com/intellij/xml/actions/validate/StdErrorReporter.java
xml/impl/src/com/intellij/xml/util/XmlEnumeratedValueReferenceProvider.java
xml/relaxng/src/org/intellij/plugins/relaxNG/compact/RncCompletionData.java
xml/relaxng/src/org/intellij/plugins/relaxNG/model/descriptors/RngXmlAttributeDescriptor.java
xml/relaxng/src/org/intellij/plugins/relaxNG/model/resolve/RelaxIncludeIndex.java
xml/relaxng/src/org/intellij/plugins/relaxNG/references/FileReferenceUtil.java
xml/relaxng/test/org/intellij/plugins/relaxNG/HighlightingTestBase.java
xml/tests/src/com/intellij/codeInsight/XmlEventsTest.java
xml/tests/src/com/intellij/codeInsight/XmlReparseTest.java
xml/tests/src/com/intellij/codeInsight/XmlTagTest.java
xml/tests/src/com/intellij/codeInsight/XmlTagWriteTest.java
xml/tests/src/com/intellij/codeInsight/completion/XmlSyncTagTest.java
xml/tests/src/com/intellij/codeInsight/daemon/XmlHighlightingTest.java
xml/tests/src/com/intellij/codeInsight/daemon/quickFix/RealFetchTest.java
xml/tests/src/com/intellij/html/MicrodataCompletionTest.java
xml/tests/src/com/intellij/psi/formatter/XmlFormatterTestBase.java
xml/tests/src/com/intellij/xml/index/XmlSchemaIndexTest.java
xml/xml-psi-impl/src/com/intellij/javaee/ExternalResourceManagerExImpl.java
xml/xml-psi-impl/src/com/intellij/xml/impl/dtd/XmlElementsGroupImpl.java
xml/xml-structure-view-impl/src/com/intellij/lang/html/structureView/HtmlTagTreeElement.java

index 6e0175945352219d9742cbaf1536f30afb99fc48..3e34ee657a4c9104c8d3e4ea6d3537d210b52a73 100644 (file)
@@ -225,9 +225,7 @@ public abstract class BaseCompilerTestCase extends ModuleTestCase {
   }
 
   protected CompilationLog rebuild() {
-    return compile(false, compileStatusNotification -> {
-      getCompilerManager().rebuild(compileStatusNotification);
-    });
+    return compile(false, compileStatusNotification -> getCompilerManager().rebuild(compileStatusNotification));
   }
 
   protected CompilationLog compile(final boolean errorsExpected, final ParameterizedRunnable<CompileStatusNotification> action) {
index 1dd711a4ecea82723b0b45ef536732b1655569e5..4f5bbdda6d04b9a23405c19cfee441f59c981336 100644 (file)
@@ -48,9 +48,7 @@ public class ExportThreadsAction extends AnAction implements AnAction.Transparen
         process.getManagerThread().invoke(new DebuggerCommandImpl() {
           protected void action() throws Exception {
             final List<ThreadState> threads = ThreadDumpAction.buildThreadStates(process.getVirtualMachineProxy());
-            ApplicationManager.getApplication().invokeLater(() -> {
-              ExportToTextFileAction.export(project, ThreadDumpPanel.createToFileExporter(project, threads));
-            }, ModalityState.NON_MODAL);
+            ApplicationManager.getApplication().invokeLater(() -> ExportToTextFileAction.export(project, ThreadDumpPanel.createToFileExporter(project, threads)), ModalityState.NON_MODAL);
           }
         });
       }
index 29c34dfa486a6d9ba5edbcd87cdd14ff871f8a9d..47e29af1c5e83bac9f55f22be6250546f302516a 100644 (file)
@@ -172,12 +172,10 @@ public class ForceEarlyReturnAction extends DebuggerAction {
   }
 
   private static void showError(final Project project, final String message) {
-    ApplicationManager.getApplication().invokeLater(() -> {
-      Messages.showMessageDialog(project,
-                                 message,
-                                 UIUtil.removeMnemonic(ActionsBundle.actionText("Debugger.ForceEarlyReturn")),
-                                 Messages.getErrorIcon());
-    }, ModalityState.any());
+    ApplicationManager.getApplication().invokeLater(() -> Messages.showMessageDialog(project,
+                                                                                   message,
+                                                                                   UIUtil.removeMnemonic(ActionsBundle.actionText("Debugger.ForceEarlyReturn")),
+                                                                                   Messages.getErrorIcon()), ModalityState.any());
   }
 
   public void update(@NotNull AnActionEvent e) {
index eb47039e76c21ebb31f380f6ef2e623503fe81e7..2620f68fc2bb1064124dd539c1e382ce55247930 100644 (file)
@@ -160,9 +160,7 @@ public class ToggleFieldBreakpointAction extends AnAction {
 
           @Override
           public void threadAction() {
-            ApplicationManager.getApplication().runReadAction(() -> {
-              positionRef.set(SourcePositionProvider.getSourcePosition(selectedNode.getDescriptor(), project, debuggerContext));
-            });
+            ApplicationManager.getApplication().runReadAction(() -> positionRef.set(SourcePositionProvider.getSourcePosition(selectedNode.getDescriptor(), project, debuggerContext)));
           }
         });
         final SourcePosition sourcePosition = positionRef.get();
index c1f23635ff679d28ea8561179a3e320e3edfe659..8d0ef9b775eef85f25b2a3edddefb5001cabb04a 100644 (file)
@@ -282,9 +282,7 @@ public class JavaStackFrame extends XStackFrame {
         final SourcePosition sourcePosition = debuggerContext.getSourcePosition();
         final Map<String, LocalVariableProxyImpl> visibleVariables =
           ContainerUtil.map2Map(getVisibleVariables(),
-                                var -> {
-                                  return Pair.create(var.name(), var);
-                                });
+                                var -> Pair.create(var.name(), var));
 
         Pair<Set<String>, Set<TextWithImports>> usedVars = EMPTY_USED_VARS;
         if (sourcePosition != null) {
index 9e6e545a63a3b2632a6d88293a269d78a9d4d82b..80cad77b1512a9ba7377396b97f80dcaa90d8bb0 100644 (file)
@@ -488,9 +488,7 @@ public class JavaValue extends XNamedValue implements NodeDescriptorProvider, XV
       @Override
       protected void doAction(@Nullable final SourcePosition sourcePosition) {
         if (sourcePosition != null) {
-          ApplicationManager.getApplication().runReadAction(() -> {
-            navigatable.setSourcePosition(DebuggerUtilsEx.toXSourcePosition(sourcePosition));
-          });
+          ApplicationManager.getApplication().runReadAction(() -> navigatable.setSourcePosition(DebuggerUtilsEx.toXSourcePosition(sourcePosition)));
         }
       }
     });
index 0ba1e8147345c3f15873b556a08f619a0cdb6e11..d54aae1149a5c3aa4ad482875e46bde3aaf70aaf 100644 (file)
@@ -119,9 +119,7 @@ public class AlternativeSourceNotificationProvider extends EditorNotifications.P
 
       ComboBoxClassElement[] elems = ContainerUtil.map2Array(alts,
                                                              ComboBoxClassElement.class,
-                                                             psiClass -> {
-                                                               return new ComboBoxClassElement((PsiClass)psiClass.getNavigationElement());
-                                                             });
+                                                             psiClass -> new ComboBoxClassElement((PsiClass)psiClass.getNavigationElement()));
 
       return new AlternativeSourceNotificationPanel(elems, baseClass, myProject, file);
     }
index c27ac1b7c11c179dcd61192ef68796ab750d1b19..1e8c5c8fc73bf55692718ce55cb7c1d1f86364b4 100644 (file)
@@ -479,9 +479,7 @@ public class BreakpointManager {
     if (breakpoint == null) {
       return;
     }
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      getXBreakpointManager().removeBreakpoint(breakpoint.myXBreakpoint);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> getXBreakpointManager().removeBreakpoint(breakpoint.myXBreakpoint));
   }
 
   public void writeExternal(@NotNull final Element parentNode) {
index 52641f8ab4f6ef999bdb67faad6b67c811935eb0..3c82276ab4a818cd60b906f1980827a40c7e423e 100644 (file)
@@ -41,9 +41,7 @@ public class ApplicationRunLineMarkerProvider extends RunLineMarkerContributor {
       if (element instanceof PsiClass && PsiMethodUtil.findMainInClass((PsiClass)element) != null ||
           element instanceof PsiMethod && "main".equals(((PsiMethod)element).getName()) && PsiMethodUtil.isMainMethod((PsiMethod)element)) {
         final AnAction[] actions = ExecutorAction.getActions(0);
-        return new Info(AllIcons.RunConfigurations.TestState.Run, element1 -> StringUtil.join(ContainerUtil.mapNotNull(actions, action -> {
-          return getText(action, element1);
-        }), "\n"), actions);
+        return new Info(AllIcons.RunConfigurations.TestState.Run, element1 -> StringUtil.join(ContainerUtil.mapNotNull(actions, action -> getText(action, element1)), "\n"), actions);
       }
     }
     return null;
index 2f4836551ee35d93c5283f37aa7640b816a0ad37..2a237cc9ca0cb4bea6d7b93f5fb4cad5aeb358d8 100644 (file)
@@ -219,11 +219,9 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
     }
 
     private void showThreadDump(final String out, final List<ThreadState> threadStates) {
-      ApplicationManager.getApplication().invokeLater(() -> {
-        AnalyzeStacktraceUtil.addConsole(myProject, threadStates.size() > 1 ?
-                                                  new ThreadDumpConsoleFactory(myProject, threadStates) : null,
-                                         "<Stacktrace> " + DateFormatUtil.formatDateTime(System.currentTimeMillis()), out);
-      }, ModalityState.NON_MODAL);
+      ApplicationManager.getApplication().invokeLater(() -> AnalyzeStacktraceUtil.addConsole(myProject, threadStates.size() > 1 ?
+                                                                                                      new ThreadDumpConsoleFactory(myProject, threadStates) : null,
+                                       "<Stacktrace> " + DateFormatUtil.formatDateTime(System.currentTimeMillis()), out), ModalityState.NON_MODAL);
     }
   }
 
index e2fb9b4cd5cda24db937c7287881b4d75716f85a..eb4dff2eddf25803cc730d15600f34206f42dec5 100644 (file)
@@ -156,9 +156,7 @@ public class TestDiscoveryExtension extends RunConfigurationExtension {
     final TestDiscoveryIndex coverageIndex = TestDiscoveryIndex.getInstance(configuration.getProject());
     synchronized (ourTracesLock) {
       final File tracesDirectoryFile = new File(tracesDirectory);
-      final File[] testMethodTraces = tracesDirectoryFile.listFiles((dir, name) -> {
-        return name.endsWith(".tr");
-      });
+      final File[] testMethodTraces = tracesDirectoryFile.listFiles((dir, name) -> name.endsWith(".tr"));
       if (testMethodTraces != null) {
         for (File testMethodTrace : testMethodTraces) {
           try {
index d5028bcbd7d0d882ba2925940df963f7e3fc2644..568e3a76e255539be46cd864afe86fabb7a9ceb0 100644 (file)
@@ -110,9 +110,7 @@ public class NewProjectUtil {
 
       final Sdk jdk = dialog.getNewProjectJdk();
       if (jdk != null) {
-        CommandProcessor.getInstance().executeCommand(newProject, () -> ApplicationManager.getApplication().runWriteAction(() -> {
-          applyJdkToProject(newProject, jdk);
-        }), null, null);
+        CommandProcessor.getInstance().executeCommand(newProject, () -> ApplicationManager.getApplication().runWriteAction(() -> applyJdkToProject(newProject, jdk)), null, null);
       }
 
       final String compileOutput = dialog.getNewCompileOutput();
index 3d1257c02706be3cb0ce20abfaf83dc2cf9be891..35b5eae5477b87926e1f094228724f4b57aacec6 100644 (file)
@@ -344,9 +344,7 @@ public class ProjectTypeStep extends ModuleWizardStep implements SettingsStep, D
       return o1.compareTo(o2);
     });
 
-    Set<String> groupNames = ContainerUtil.map2Set(groups, group -> {
-      return group.getParentGroup();
-    });
+    Set<String> groupNames = ContainerUtil.map2Set(groups, group -> group.getParentGroup());
 
     // move subgroups
     MultiMap<String, TemplatesGroup> subGroups = new MultiMap<String, TemplatesGroup>();
index 93341434a1917d032f4b0f3edef2aea314e3d1a5..004cb4927dba83596bcd7c9115b1489c4a7721c8 100644 (file)
@@ -58,9 +58,7 @@ public class ImportMode extends WizardMode {
     final String productName = ApplicationNamesInfo.getInstance().getFullProductName();
     return ProjectBundle.message("project.new.wizard.import.description", productName, context.getPresentationName(), StringUtil.join(
       Arrays.asList(Extensions.getExtensions(ProjectImportProvider.PROJECT_IMPORT_PROVIDER)),
-      provider -> {
-        return provider.getName();
-      }, ", "));
+      provider -> provider.getName(), ", "));
   }
 
   @Nullable
index f2546564f16bda1e9fb3d576dcec9c0151dca534..ecaaa4f9058d581a99c7023e69efc4bf817c7d9d 100644 (file)
@@ -239,9 +239,7 @@ public class JdkChooserPanel extends JPanel {
     if (jdk == null) {
       return null;
     }
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      ProjectRootManager.getInstance(project).setProjectSdk(jdk);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> ProjectRootManager.getInstance(project).setProjectSdk(jdk));
     return jdk;
   }
 
index 75f8540ffd0bbafe3f77f7206d830db407b54b44..7e92e7ca612e378e88bfe08c15ee608d68f6625b 100644 (file)
@@ -216,9 +216,7 @@ public class SdkEditor implements Configurable, Place.Navigator {
       for (SdkPathEditor pathEditor : myPathEditors.values()) {
         pathEditor.apply(sdkModificator);
       }
-      ApplicationManager.getApplication().runWriteAction(() -> {
-        sdkModificator.commitChanges();
-      });
+      ApplicationManager.getApplication().runWriteAction(() -> sdkModificator.commitChanges());
       final AdditionalDataConfigurable configurable = getAdditionalDataConfigurable();
       if (configurable != null) {
         configurable.apply();
index e0830afbd0c13d0a31e8c22e345e3e01c267becf..8da7f775f8b8f0d9fd244fc3cb2009852154c3cd 100644 (file)
@@ -44,25 +44,19 @@ public class IdeaProjectSettingsService extends ProjectSettingsService implement
   @Override
   public void openProjectSettings() {
     final ProjectStructureConfigurable config = ProjectStructureConfigurable.getInstance(myProject);
-    ShowSettingsUtil.getInstance().editConfigurable(myProject, config, () -> {
-      config.selectProjectGeneralSettings(true);
-    });
+    ShowSettingsUtil.getInstance().editConfigurable(myProject, config, () -> config.selectProjectGeneralSettings(true));
   }
 
   @Override
   public void openGlobalLibraries() {
     final ProjectStructureConfigurable config = ProjectStructureConfigurable.getInstance(myProject);
-    ShowSettingsUtil.getInstance().editConfigurable(myProject, config, () -> {
-      config.selectGlobalLibraries(true);
-    });
+    ShowSettingsUtil.getInstance().editConfigurable(myProject, config, () -> config.selectGlobalLibraries(true));
   }
 
   @Override
   public void openLibrary(@NotNull final Library library) {
     final ProjectStructureConfigurable config = ProjectStructureConfigurable.getInstance(myProject);
-    ShowSettingsUtil.getInstance().editConfigurable(myProject, config, () -> {
-      config.selectProjectOrGlobalLibrary(library, true);
-    });
+    ShowSettingsUtil.getInstance().editConfigurable(myProject, config, () -> config.selectProjectOrGlobalLibrary(library, true));
   }
 
   @Override
@@ -102,9 +96,7 @@ public class IdeaProjectSettingsService extends ProjectSettingsService implement
 
   @Override
   public void openModuleDependenciesSettings(@NotNull final Module module, @Nullable final OrderEntry orderEntry) {
-    ShowSettingsUtil.getInstance().editConfigurable(myProject, ProjectStructureConfigurable.getInstance(myProject), () -> {
-      ProjectStructureConfigurable.getInstance(myProject).selectOrderEntry(module, orderEntry);
-    });
+    ShowSettingsUtil.getInstance().editConfigurable(myProject, ProjectStructureConfigurable.getInstance(myProject), () -> ProjectStructureConfigurable.getInstance(myProject).selectOrderEntry(module, orderEntry));
   }
 
   @Override
index 4c40a9c88e6d24d8083edb79c93ce5891d7e62ac..1749ad0857fd7b4c0191ac5355a2a47cd5cdad21 100644 (file)
@@ -523,9 +523,7 @@ public class ModulesConfigurator implements ModulesProvider, ModuleEditor.Change
 
   public static boolean showArtifactSettings(@NotNull Project project, @Nullable final Artifact artifact) {
     final ProjectStructureConfigurable configurable = ProjectStructureConfigurable.getInstance(project);
-    return ShowSettingsUtil.getInstance().editConfigurable(project, configurable, () -> {
-      configurable.select(artifact, true);
-    });
+    return ShowSettingsUtil.getInstance().editConfigurable(project, configurable, () -> configurable.select(artifact, true));
   }
 
   public static boolean showFacetSettingsDialog(@NotNull final Facet facet,
@@ -545,9 +543,7 @@ public class ModulesConfigurator implements ModulesProvider, ModuleEditor.Change
 
   public static boolean showDialog(Project project, @Nullable final String moduleToSelect, @Nullable final String editorNameToSelect) {
     final ProjectStructureConfigurable config = ProjectStructureConfigurable.getInstance(project);
-    return ShowSettingsUtil.getInstance().editConfigurable(project, config, () -> {
-      config.select(moduleToSelect, editorNameToSelect, true);
-    });
+    return ShowSettingsUtil.getInstance().editConfigurable(project, config, () -> config.select(moduleToSelect, editorNameToSelect, true));
   }
 
   public void moduleRenamed(Module module, final String oldName, final String name) {
index 263ab20698f45ac2ad05103498400409165fc175..d2ddc4d3650d6bec663fbfe3fe07418504c78e14 100644 (file)
@@ -452,9 +452,7 @@ public class LibraryRootsComponent implements Disposable, LibraryEditorComponent
   private List<OrderRoot> attachFiles(List<OrderRoot> roots) {
     final List<OrderRoot> rootsToAttach = filterAlreadyAdded(roots);
     if (!rootsToAttach.isEmpty()) {
-      ApplicationManager.getApplication().runWriteAction(() -> {
-        getLibraryEditor().addRoots(rootsToAttach);
-      });
+      ApplicationManager.getApplication().runWriteAction(() -> getLibraryEditor().addRoots(rootsToAttach));
       updatePropertiesLabel();
       onRootsChanged();
       myTreeBuilder.queueUpdate();
index a8b7c0f81022a7b8ce8d6f85e5ec7749ad42e3c2..53d622af1b063c15bfca938140664a6812c051b9 100644 (file)
@@ -306,9 +306,7 @@ public class ModuleStructureConfigurable extends BaseStructureConfigurable imple
   @Override
   protected Comparator<MyNode> getNodeComparator() {
     List<Comparator<MyNode>> comparators = ContainerUtil
-      .mapNotNull(ModuleStructureExtension.EP_NAME.getExtensions(), moduleStructureExtension -> {
-        return moduleStructureExtension.getNodeComparator();
-      });
+      .mapNotNull(ModuleStructureExtension.EP_NAME.getExtensions(), moduleStructureExtension -> moduleStructureExtension.getNodeComparator());
     return new MergingComparator<MyNode>(ContainerUtil.concat(comparators, Collections.singletonList(NODE_COMPARATOR)));
   }
 
index 9ed21b232289f545cbccc251734959091b07ac4e..9a09b7b3f611fc5c72f811a2cb5a21b20fd571f3 100644 (file)
@@ -62,9 +62,7 @@ public class SuppressWarningsFoldingBuilder extends FoldingBuilderEx {
   public String getPlaceholderText(@NotNull ASTNode node) {
     final PsiElement element = node.getPsi();
     if (element instanceof PsiAnnotation) {
-      return "/" + StringUtil.join(((PsiAnnotation)element).getParameterList().getAttributes(), value -> {
-        return getMemberValueText(value.getValue());
-      }, ", ") + "/";
+      return "/" + StringUtil.join(((PsiAnnotation)element).getParameterList().getAttributes(), value -> getMemberValueText(value.getValue()), ", ") + "/";
     }
     return element.getText();
   }
@@ -72,9 +70,7 @@ public class SuppressWarningsFoldingBuilder extends FoldingBuilderEx {
   private static String getMemberValueText(PsiAnnotationMemberValue memberValue) {
     if (memberValue instanceof PsiArrayInitializerMemberValue) {
       final PsiAnnotationMemberValue[] initializers = ((PsiArrayInitializerMemberValue)memberValue).getInitializers();
-      return StringUtil.join(initializers, psiAnnotationMemberValue -> {
-        return getMemberValueText(psiAnnotationMemberValue);
-      }, ", ");
+      return StringUtil.join(initializers, psiAnnotationMemberValue -> getMemberValueText(psiAnnotationMemberValue), ", ");
     }
     if (memberValue instanceof PsiLiteral) {
       final Object o = ((PsiLiteral)memberValue).getValue();
index 324e3ddb257325433ad9f88ee993e51e1fac7213..5b50f77760d51ccc6d62c3d9d3ce088b3ed2b6c5 100644 (file)
@@ -74,9 +74,7 @@ public class DeleteRepeatedInterfaceFix implements IntentionAction {
             public boolean value(PsiTypeElement element) {
               return element != myConjunct;
             }
-          }), element -> {
-            return element.getText();
-          }, " & ");
+          }), element -> element.getText(), " & ");
           final PsiTypeCastExpression newCastExpr =
             (PsiTypeCastExpression)JavaPsiFacade.getElementFactory(project).createExpressionFromText("(" + typeText + ")a", castType);
           CodeStyleManager.getInstance(project).reformat(castType.replace(newCastExpr.getCastType()));
index 4da3f485021e2b7328245f261a9276fcac5b41df..6b0c39d53a6de097d085b742c01bd90aa80abf4d 100644 (file)
@@ -78,9 +78,7 @@ public class FlipIntersectionSidesFix implements IntentionAction {
     myConjuncts.remove(myConjunct);
     myConjuncts.add(0, myConjunct);
 
-    final String intersectionTypeText = StringUtil.join(myConjuncts, element -> {
-      return element.getText();
-    }, " & ");
+    final String intersectionTypeText = StringUtil.join(myConjuncts, element -> element.getText(), " & ");
     final PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(project);
     final PsiTypeCastExpression fixedCast =
       (PsiTypeCastExpression)elementFactory.createExpressionFromText("(" + intersectionTypeText + ") a", myCastTypeElement);
index cc608eed9d3a9653ceeabbe845a9fe6c78191f82..e94b653a87c5d5c4adf00aa9d7bc87988ba96f57 100644 (file)
@@ -83,9 +83,7 @@ public class SimplifyBooleanExpressionFix extends LocalQuickFixOnPsiElement {
     if (!isAvailable()) return;
     final PsiExpression expression = getSubExpression();
     if (!FileModificationService.getInstance().preparePsiElementForWrite(expression)) return;
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      simplifyExpression(project, expression, mySubExpressionValue);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> simplifyExpression(project, expression, mySubExpressionValue));
   }
 
   public static void simplifyExpression(Project project, final PsiExpression subExpression, final Boolean subExpressionValue) {
@@ -293,9 +291,7 @@ public class SimplifyBooleanExpressionFix extends LocalQuickFixOnPsiElement {
         if (expressions.isEmpty()) {
           resultExpression = negate ? trueExpression : falseExpression;
         } else {
-          String simplifiedText = StringUtil.join(expressions, expression1 -> {
-            return expression1.getText();
-          }, " ^ ");
+          String simplifiedText = StringUtil.join(expressions, expression1 -> expression1.getText(), " ^ ");
           if (negate) {
             if (expressions.size() > 1) {
               simplifiedText = "!(" + simplifiedText + ")";
index 0e3ba50f390596bf678ba97d43bff2eeafc0777a..96bcd82bda5d2b2b662cd1c34acee019260f523d 100644 (file)
@@ -115,9 +115,7 @@ class StateQueue {
       
     }
 
-    return ContainerUtil.map(memoryStates, state1 -> {
-      return new DfaInstructionState(instruction, state1);
-    });
+    return ContainerUtil.map(memoryStates, state1 -> new DfaInstructionState(instruction, state1));
   }                                                                      
 
   private static List<DfaMemoryStateImpl> mergeGroup(List<DfaMemoryStateImpl> group) {
index af959256070a6e5ed930860d6a8a7a83a02f88c2..483b3be0320602d04d1ab5e8de3c599034a3d2f3 100644 (file)
@@ -993,9 +993,7 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
 
   @Override
   public void flushVariable(@NotNull final DfaVariableValue variable) {
-    List<DfaValue> updatedStack = ContainerUtil.map(myStack, value -> {
-      return handleFlush(variable, value);
-    });
+    List<DfaValue> updatedStack = ContainerUtil.map(myStack, value -> handleFlush(variable, value));
     myStack.clear();
     for (DfaValue value : updatedStack) {
       myStack.push(value);
index 5a6413e2f04c67fd18ed9b1f3a724c0a0af9aa89..63f461898814143a3644b4928e977f4089a88c73 100644 (file)
@@ -53,9 +53,7 @@ public class DfaUtil {
     ValuableInstructionVisitor.PlaceResult placeResult = value.get(context);
     final Collection<FList<PsiExpression>> concatenations = placeResult == null ? null : placeResult.myValues.get(variable);
     if (concatenations != null) {
-      return ContainerUtil.map(concatenations, expressions -> {
-        return concatenateExpressions(expressions);
-      });
+      return ContainerUtil.map(concatenations, expressions -> concatenateExpressions(expressions));
     }
     return Collections.emptyList();
   }
@@ -256,9 +254,7 @@ public class DfaUtil {
       return concatenation.getHead();
     }
     String text = StringUtil
-      .join(ContainerUtil.reverse(new ArrayList<PsiExpression>(concatenation)), expression -> {
-        return expression.getText();
-      }, "+");
+      .join(ContainerUtil.reverse(new ArrayList<PsiExpression>(concatenation)), expression -> expression.getText(), "+");
     try {
       return JavaPsiFacade.getElementFactory(concatenation.getHead().getProject()).createExpressionFromText(text, concatenation.getHead());
     }
index 8e092099302e4b1e0568415d866df54114bce7d0..0f3ba3ae4aeca48d29c256dd9b61c239e499c27d 100644 (file)
@@ -47,9 +47,7 @@ public class MethodContract {
 
   @Override
   public String toString() {
-    return StringUtil.join(arguments, constraint -> {
-      return constraint.toString();
-    }, ", ") + " -> " + returnValue;
+    return StringUtil.join(arguments, constraint -> constraint.toString(), ", ") + " -> " + returnValue;
   }
 
   public enum ValueConstraint {
index 967700c151116b7ce2303e293aae0ee4634fa0a5..40361913399e2f89d394a4c8bcc9014dab706d40 100644 (file)
@@ -387,9 +387,7 @@ public class NullableStuffInspectionBase extends BaseJavaBatchLocalInspectionToo
     Annotated annotated = check(method, holder, method.getReturnType());
 
     List<PsiMethod> superMethods = ContainerUtil.map(
-      method.findSuperMethodSignaturesIncludingStatic(true), signature -> {
-        return signature.getMethod();
-      });
+      method.findSuperMethodSignaturesIncludingStatic(true), signature -> signature.getMethod());
 
     final NullableNotNullManager nullableManager = NullableNotNullManager.getInstance(holder.getProject());
 
index 6bdf0d5e810fabc2e125138d4c77f1215b8ef8a5..3cb46565482e7842ed67c7bd54f60cddb7bc040b 100644 (file)
@@ -289,9 +289,7 @@ public class RefClassImpl extends RefJavaElementImpl implements RefClass {
   @Override
   public void accept(@NotNull final RefVisitor visitor) {
     if (visitor instanceof RefJavaVisitor) {
-      ApplicationManager.getApplication().runReadAction(() -> {
-        ((RefJavaVisitor)visitor).visitClass(RefClassImpl.this);
-      });
+      ApplicationManager.getApplication().runReadAction(() -> ((RefJavaVisitor)visitor).visitClass(RefClassImpl.this));
     } else {
       super.accept(visitor);
     }
index 6b5e588a28b7ca67887f76174229036bf5b97de8..fa9c17c35ef39fcf20669281b5c722ce49de0480 100644 (file)
@@ -105,9 +105,7 @@ public class RefFieldImpl extends RefJavaElementImpl implements RefField {
   @Override
   public void accept(@NotNull final RefVisitor visitor) {
     if (visitor instanceof RefJavaVisitor) {
-      ApplicationManager.getApplication().runReadAction(() -> {
-        ((RefJavaVisitor)visitor).visitField(RefFieldImpl.this);
-      });
+      ApplicationManager.getApplication().runReadAction(() -> ((RefJavaVisitor)visitor).visitField(RefFieldImpl.this));
     }  else {
       super.accept(visitor);
     }
index c28e9d50a0b0bd669ab7e54605b03756479982e8..a72a85827bab119838883618c395366a293fcac9 100644 (file)
@@ -338,9 +338,7 @@ public class RefMethodImpl extends RefJavaElementImpl implements RefMethod {
   @Override
   public void accept(@NotNull final RefVisitor visitor) {
     if (visitor instanceof RefJavaVisitor) {
-      ApplicationManager.getApplication().runReadAction(() -> {
-        ((RefJavaVisitor)visitor).visitMethod(RefMethodImpl.this);
-      });
+      ApplicationManager.getApplication().runReadAction(() -> ((RefJavaVisitor)visitor).visitMethod(RefMethodImpl.this));
     } else {
       super.accept(visitor);
     }
index b010fc9ca17c9e9368bcd3e6f3f7929b8414d335..1f26717ad3d6633926d85fd61433efe2139253d2 100644 (file)
@@ -55,9 +55,7 @@ public class RefPackageImpl extends RefEntityImpl implements RefPackage {
   @Override
   public void accept(@NotNull final RefVisitor visitor) {
     if (visitor instanceof RefJavaVisitor) {
-      ApplicationManager.getApplication().runReadAction(() -> {
-        ((RefJavaVisitor)visitor).visitPackage(RefPackageImpl.this);
-      });
+      ApplicationManager.getApplication().runReadAction(() -> ((RefJavaVisitor)visitor).visitPackage(RefPackageImpl.this));
     } else {
       super.accept(visitor);
     }
index a5a1b9b7ca30f2757be43eba38f8dd9dbe95345e..2230ac427d92797c1473db64e118da5bc2661b13 100644 (file)
@@ -86,9 +86,7 @@ public class RefParameterImpl extends RefJavaElementImpl implements RefParameter
   @Override
   public void accept(@NotNull final RefVisitor visitor) {
     if (visitor instanceof RefJavaVisitor) {
-      ApplicationManager.getApplication().runReadAction(() -> {
-        ((RefJavaVisitor)visitor).visitParameter(RefParameterImpl.this);
-      });
+      ApplicationManager.getApplication().runReadAction(() -> ((RefJavaVisitor)visitor).visitParameter(RefParameterImpl.this));
     } else {
       super.accept(visitor);
     }
index 32b1e019c3b7b42d1d6faa37741197eada644c88..23895730d06f745a9ae5136017465dd4d0b5f774 100644 (file)
@@ -84,9 +84,7 @@ public class UnusedLibrariesInspection extends GlobalInspectionTool {
             final Set<VirtualFile> files = new HashSet<VirtualFile>(Arrays.asList(((LibraryOrderEntry)entry).getRootFiles(OrderRootType.CLASSES)));
             files.removeAll(usedRoots);
             if (!files.isEmpty()) {
-              final String unusedLibraryRoots = StringUtil.join(files, file -> {
-                return file.getPresentableName();
-              }, ",");
+              final String unusedLibraryRoots = StringUtil.join(files, file -> file.getPresentableName(), ",");
               String message =
                 InspectionsBundle.message("unused.library.roots.problem.descriptor", unusedLibraryRoots, entry.getPresentableName());
               processor.addProblemElement(refModule,
index 554d58eca9498072797d6891ea79601d881e37c4..5f8386ae9edf74df295bb5d12c71113412204ed1 100644 (file)
@@ -159,10 +159,8 @@ public class ExternalAnnotationsManagerImpl extends ReadableExternalAnnotationsM
           notifyAfterAnnotationChanging(listOwner, annotationFQName, false);
           return;
         }
-        application.invokeLater(() -> {
-          DumbService.getInstance(project).withAlternativeResolveEnabled(
-            () -> setupRootAndAnnotateExternally(entry, project, listOwner, annotationFQName, fromFile, packageName, value));
-        }, project.getDisposed());
+        application.invokeLater(() -> DumbService.getInstance(project).withAlternativeResolveEnabled(
+          () -> setupRootAndAnnotateExternally(entry, project, listOwner, annotationFQName, fromFile, packageName, value)), project.getDisposed());
       }
       break;
     }
index 74bf57d177c60c4d146dc7c76f32f900e18fb439..cce827ae2a8da8401d54ffb50937c407d09aa740 100644 (file)
@@ -94,10 +94,8 @@ public class MakeInferredAnnotationExplicit extends BaseIntentionAction {
         return;
       }
       
-      WriteCommandAction.runWriteCommandAction(project, () -> {
-        DumbService.getInstance(project).withAlternativeResolveEnabled(
-          () -> JavaCodeStyleManager.getInstance(project).shortenClassReferences(modifierList.addAfter(toInsert, null)));
-      });
+      WriteCommandAction.runWriteCommandAction(project, () -> DumbService.getInstance(project).withAlternativeResolveEnabled(
+        () -> JavaCodeStyleManager.getInstance(project).shortenClassReferences(modifierList.addAfter(toInsert, null))));
     }
 
     
index 6167af4a18a960e3f6f3f1ef80fdf706a76ca2f8..dea033613fd2f81e4a0c66293b43301036d46f85 100644 (file)
@@ -112,18 +112,14 @@ public class JavaCompletionUtil {
   }
 
   public static void putAllMethods(LookupElement item, List<PsiMethod> methods) {
-    item.putUserData(ALL_METHODS_ATTRIBUTE, ContainerUtil.map(methods, method -> {
-      return SmartPointerManager.getInstance(method.getProject()).createSmartPsiElementPointer(method);
-    }));
+    item.putUserData(ALL_METHODS_ATTRIBUTE, ContainerUtil.map(methods, method -> SmartPointerManager.getInstance(method.getProject()).createSmartPsiElementPointer(method)));
   }
 
   public static List<PsiMethod> getAllMethods(LookupElement item) {
     List<SmartPsiElementPointer<PsiMethod>> pointers = item.getUserData(ALL_METHODS_ATTRIBUTE);
     if (pointers == null) return null;
 
-    return ContainerUtil.mapNotNull(pointers, pointer -> {
-      return pointer.getElement();
-    });
+    return ContainerUtil.mapNotNull(pointers, pointer -> pointer.getElement());
   }
 
   public static String[] completeVariableNameForRefactoring(JavaCodeStyleManager codeStyleManager, @Nullable final PsiType varType,
index 47a4418c25e2498788161a8b7be78c1ed6b39b44..b893afb3912f1532b936233ea879eebcdfb47cfb 100644 (file)
@@ -90,9 +90,7 @@ public class JavaSmartCompletionContributor extends CompletionContributor {
     if (psiElement().afterLeaf(psiElement().withText(".")).withSuperParent(2, psiElement(PsiNewExpression.class)).accepts(element)) {
       if (((PsiNewExpression)element.getParent().getParent()).getClassReference() == element.getParent()) {
         PsiType[] types = ExpectedTypesGetter.getExpectedTypes(element, false);
-        return new OrFilter(ContainerUtil.map2Array(types, ElementFilter.class, (Function<PsiType, ElementFilter>)type -> {
-          return new AssignableFromFilter(type);
-        }));
+        return new OrFilter(ContainerUtil.map2Array(types, ElementFilter.class, (Function<PsiType, ElementFilter>)type -> new AssignableFromFilter(type)));
       }
     }
 
index af5d6d814dd0045229199c6b2595962a0a919daa..4a78f330e5ee336cac038cb5ff016bc4db7a5ec8 100644 (file)
@@ -76,9 +76,7 @@ class SameSignatureCallParametersProvider extends CompletionProvider<CompletionP
 
   private static LookupElement createParametersLookupElement(final PsiMethod takeParametersFrom, PsiElement call, PsiMethod invoked) {
     final PsiParameter[] parameters = takeParametersFrom.getParameterList().getParameters();
-    final String lookupString = StringUtil.join(parameters, psiParameter -> {
-      return psiParameter.getName();
-    }, ", ");
+    final String lookupString = StringUtil.join(parameters, psiParameter -> psiParameter.getName(), ", ");
 
     final int w = PlatformIcons.PARAMETER_ICON.getIconWidth();
     LayeredIcon icon = new LayeredIcon(2);
index 6db4a0c3b0230c555657670c8480448cdde64466..d90d0ed779722a6f8b453ec0fa3a91c4f9f027f1 100644 (file)
@@ -199,9 +199,7 @@ class TypeArgumentCompletionProvider extends CompletionProvider<CompletionParame
       myTypeItems = typeItems;
       myGlobalTail = globalTail;
       myHasParameters = hasParameters;
-      myLookupString = StringUtil.join(myTypeItems, item -> {
-        return item.getType().getPresentableText();
-      }, ", ");
+      myLookupString = StringUtil.join(myTypeItems, item -> item.getType().getPresentableText(), ", ");
     }
 
     @NotNull
index 43ced2a7bc5edf7160202c720663a847883d25d0..adcd8edc243afdebb760264e3aba1268146895fc 100644 (file)
@@ -210,9 +210,7 @@ public class AddImportAction implements QuestionAction {
 
   private void addImport(final PsiReference ref, final PsiClass targetClass) {
     StatisticsManager.getInstance().incUseCount(JavaStatisticsManager.createInfo(null, targetClass));
-    CommandProcessor.getInstance().executeCommand(myProject, () -> ApplicationManager.getApplication().runWriteAction(() -> {
-      DumbService.getInstance(myProject).withAlternativeResolveEnabled(() -> _addImport(ref, targetClass));
-    }), QuickFixBundle.message("add.import"), null);
+    CommandProcessor.getInstance().executeCommand(myProject, () -> ApplicationManager.getApplication().runWriteAction(() -> DumbService.getInstance(myProject).withAlternativeResolveEnabled(() -> _addImport(ref, targetClass))), QuickFixBundle.message("add.import"), null);
   }
 
   private void _addImport(PsiReference ref, PsiClass targetClass) {
index e21bad023b7654488f1c9e13b6f26a459e0ed311..4f340657e2f6a910cbb1c915733cb2c0e7fe9cb2 100644 (file)
@@ -82,9 +82,7 @@ public class AddExceptionFromFieldInitializerToConstructorThrowsFix extends Base
         PsiMethod[] constructors = aClass.getConstructors();
         if (constructors.length == 0) {
           final AddDefaultConstructorFix defaultConstructorFix = new AddDefaultConstructorFix(aClass);
-          ApplicationManager.getApplication().runWriteAction(() -> {
-            defaultConstructorFix.invoke(project, null, file);
-          });
+          ApplicationManager.getApplication().runWriteAction(() -> defaultConstructorFix.invoke(project, null, file));
           constructors = aClass.getConstructors();
           LOG.assertTrue(constructors.length != 0);
         }
index ab5997d6a3ba34306563577a80684ae239ab0a09..6eed4bdbe223bb428da29050bce015d5836e3fb6 100644 (file)
@@ -129,9 +129,7 @@ public class AddMethodQualifierFix implements IntentionAction {
         @Override
         public PopupStep onChosen(final PsiVariable selectedValue, final boolean finalChoice) {
           if (selectedValue != null && finalChoice) {
-            WriteCommandAction.runWriteCommandAction(selectedValue.getProject(), () -> {
-              qualify(selectedValue, editor);
-            });
+            WriteCommandAction.runWriteCommandAction(selectedValue.getProject(), () -> qualify(selectedValue, editor));
           }
           return FINAL_CHOICE;
         }
index 61fe89b7f421d9a1ebe0387ccd083037cbc89c65..7ee09739cf3e14a234de5ae233bdf72b5d02b4ea 100644 (file)
@@ -229,9 +229,7 @@ public class ChangeMethodSignatureFromUsageFix implements IntentionAction/*, Hig
         }
       };
       processor.run();
-      ApplicationManager.getApplication().runWriteAction(() -> {
-        UndoUtil.markPsiFileForUndo(file);
-      });
+      ApplicationManager.getApplication().runWriteAction(() -> UndoUtil.markPsiFileForUndo(file));
       return Arrays.asList(newParametersInfo);
     }
     else {
index c4c79c02d31bd6ae7f75dde92d8a49d6f5a995bf..08092bfc733c4a68394499edc1cb0e704726eb90 100644 (file)
@@ -71,9 +71,7 @@ public class ChangeParameterClassFix extends ExtendsListFix {
     final PsiClass myClass = (PsiClass)startElement;
     if (!FileModificationService.getInstance().prepareFileForWrite(file)) return;
     ApplicationManager.getApplication().runWriteAction(
-      () -> {
-        invokeImpl(myClass);
-      }
+      () -> invokeImpl(myClass)
     );
     final Editor editor1 = CodeInsightUtil.positionCursorAtLBrace(project, myClass.getContainingFile(), myClass);
     if (editor1 == null) return;
@@ -83,9 +81,7 @@ public class ChangeParameterClassFix extends ExtendsListFix {
         ApplicationManager.getApplication().runWriteAction(
           () -> {
             Collection<PsiMethodMember> members =
-              ContainerUtil.map2List(toImplement, s -> {
-                return new PsiMethodMember(s);
-              });
+              ContainerUtil.map2List(toImplement, s -> new PsiMethodMember(s));
             OverrideImplementUtil.overrideOrImplementMethodsInRightPlace(editor1, myClass, members, false);
           });
       }
index 5dbc30cd978e3e227288ece40a98ecdd6f22a298..0f3a42f4026339d7ac8fa18f09ca6767e77c2aab 100644 (file)
@@ -103,9 +103,7 @@ public class CreateConstructorParameterFromFieldFix implements IntentionAction {
     PsiMethod[] constructors = myClass.getConstructors();
     if (constructors.length == 0) {
       final AddDefaultConstructorFix defaultConstructorFix = new AddDefaultConstructorFix(myClass);
-      ApplicationManager.getApplication().runWriteAction(() -> {
-        defaultConstructorFix.invoke(project, editor, file);
-      });
+      ApplicationManager.getApplication().runWriteAction(() -> defaultConstructorFix.invoke(project, editor, file));
       constructors = myClass.getConstructors();
     }
     Arrays.sort(constructors, new Comparator<PsiMethod>() {
index ec0ccbaa79347b978cffde26d118f587b0bb7fc6..f8834c2cf68a58ff764aa9aaf9b1662c9154154b 100644 (file)
@@ -60,9 +60,7 @@ public class CreateEnumConstantFromUsageFix extends CreateVarFromUsageFix implem
       final PsiMethod constructor = constructors[0];
       final PsiParameter[] parameters = constructor.getParameterList().getParameters();
       if (parameters.length > 0) {
-        final String params = StringUtil.join(parameters, psiParameter -> {
-          return psiParameter.getName();
-        }, ",");
+        final String params = StringUtil.join(parameters, psiParameter -> psiParameter.getName(), ",");
         enumConstant = (PsiEnumConstant)enumConstant.replace(elementFactory.createEnumConstantFromText(name + "(" + params + ")", null));
         final TemplateBuilderImpl builder = new TemplateBuilderImpl(enumConstant);
 
index ced50080700f5384c6795417fa7cc51bede2dea9..bd7a112f98e67a922ddcf521dd128568c08ea9ca 100644 (file)
@@ -107,9 +107,7 @@ public abstract class CreateFromUsageBaseFix extends BaseIntentionAction {
     }
 
     IdeDocumentHistory.getInstance(project).includeCurrentPlaceAsChangePlace();
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      invokeImpl(targetClass);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> invokeImpl(targetClass));
   }
 
   @Nullable
index 8c3c587f98119c45df8d3c661244a6acc9d3ec34..3393fd2325604a16901101c262c396d2b1fcbc48 100644 (file)
@@ -127,9 +127,7 @@ public class CreateMethodFromMethodReferenceFix extends CreateFromUsageBaseFix {
     final PsiSubstitutor substitutor = LambdaUtil.getSubstitutor(interfaceMethod, classResolveResult);
     final ExpectedTypeInfo[] expectedTypes = {new ExpectedTypeInfoImpl(interfaceReturnType, ExpectedTypeInfo.TYPE_OR_SUBTYPE, interfaceReturnType, TailType.NONE, null, ExpectedTypeInfoImpl.NULL)};
     CreateMethodFromUsageFix.doCreate(targetClass, method, false,
-                                      ContainerUtil.map2List(interfaceMethod.getParameterList().getParameters(), parameter -> {
-                                        return Pair.create(null, substitutor.substitute(parameter.getType()));
-                                      }),
+                                      ContainerUtil.map2List(interfaceMethod.getParameterList().getParameters(), parameter -> Pair.create(null, substitutor.substitute(parameter.getType()))),
                                       PsiSubstitutor.EMPTY,
                                       expectedTypes, context);
   }
index d26277ca7246059efd78dfd828bc44231db91b08..2a4ca92cdcd26831aedd6a5d41e51a50298f3da8 100644 (file)
@@ -128,9 +128,7 @@ public class CreatePropertyFromUsageFix extends CreateFromUsageBaseFix implement
     public FieldExpression(final PsiField field, PsiClass aClass, PsiType[] expectedTypes) {
       myField = field;
       myClass = aClass;
-      myExpectedTypes = ContainerUtil.map(expectedTypes, type -> {
-        return SmartTypePointerManager.getInstance(field.getProject()).createSmartTypePointer(type);
-      });
+      myExpectedTypes = ContainerUtil.map(expectedTypes, type -> SmartTypePointerManager.getInstance(field.getProject()).createSmartTypePointer(type));
       myDefaultFieldName = field.getName();
     }
 
index 6a176a439d45d1d832743b86ed264cc78d4a911f..cdaa2aad68ff1c5bdddb3f063ccc4982ad08edfc 100644 (file)
@@ -66,9 +66,7 @@ public class CreateStaticMethodQuickFix implements LocalQuickFix {
     }
     PsiUtil.setModifierProperty(method, PsiModifier.STATIC, true);
 
-    List<Pair<PsiExpression,PsiType>> args = ContainerUtil.map(types, s -> {
-      return new Pair<PsiExpression, PsiType>(null, PsiType.getTypeByName(s, project, GlobalSearchScope.allScope(project)));
-    });
+    List<Pair<PsiExpression,PsiType>> args = ContainerUtil.map(types, s -> new Pair<PsiExpression, PsiType>(null, PsiType.getTypeByName(s, project, GlobalSearchScope.allScope(project))));
     CreateMethodFromUsageFix.doCreate(targetClass, method, false,
                                       args,
                                       PsiSubstitutor.UNKNOWN,
index 3eae157e3722bbcbc8dc0b8cc3f340cb1861c63f..f7b2e1a075b69c6597e3b1aa34619473f4e19d82 100644 (file)
@@ -87,9 +87,7 @@ public class InitializeFinalFieldInConstructorFix implements IntentionAction {
 
     final List<PsiMethod> constructors = choose(filterIfFieldAlreadyAssigned(myField, myClass.getConstructors()), project);
 
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      addFieldInitialization(constructors, myField, project, editor);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> addFieldInitialization(constructors, myField, project, editor));
   }
 
   private static void addFieldInitialization(@NotNull List<PsiMethod> constructors,
@@ -182,9 +180,7 @@ public class InitializeFinalFieldInConstructorFix implements IntentionAction {
 
   private static void createDefaultConstructor(PsiClass psiClass, @NotNull final Project project, final Editor editor, final PsiFile file) {
     final AddDefaultConstructorFix defaultConstructorFix = new AddDefaultConstructorFix(psiClass);
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      defaultConstructorFix.invoke(project, editor, file);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> defaultConstructorFix.invoke(project, editor, file));
   }
 
   private static PsiMethod[] filterIfFieldAlreadyAssigned(@NotNull PsiField field, @NotNull PsiMethod[] ctors) {
index f40d7ebd476fe2c945b1946dabc3bdde3bad2043..feeb6642cd995244927e5eb94a496843ebfc53c2 100644 (file)
@@ -214,9 +214,7 @@ public abstract class OrderEntryFix implements IntentionAction, LocalQuickFix {
 
   @NotNull
   public static List<String> refreshAndConvertToUrls(@NotNull List<String> jarPaths) {
-    return ContainerUtil.map(jarPaths, path -> {
-      return refreshAndConvertToUrl(path);
-    });
+    return ContainerUtil.map(jarPaths, path -> refreshAndConvertToUrl(path));
   }
 
   @NotNull
index 39bcce5b083305f71fc914f10f0cb3fc3a9a2d6d..80d010bfb8a23df76dbc0369e43ae54415e0fc28 100644 (file)
@@ -134,9 +134,7 @@ public class CreateClassOrPackageFix extends LocalQuickFixAndIntentionActionOnPs
         protected void run(@NotNull Result result) throws Throwable {
           final PsiDirectory directory = chooseDirectory(project, file);
           if (directory == null) return;
-          ApplicationManager.getApplication().runWriteAction(() -> {
-            doCreate(directory, startElement);
-          });
+          ApplicationManager.getApplication().runWriteAction(() -> doCreate(directory, startElement));
         }
       }.execute();
     }
index 3f8b378ef8131aecc257823314fb09798d174d13..38eacc30395ab2390c1edbf1760cffb32feb72a5 100644 (file)
@@ -75,9 +75,7 @@ public class RedundantLambdaParameterTypeIntention extends PsiElementBaseIntenti
           final PsiExpression[] arguments = ((PsiExpressionList)lambdaParent).getExpressions();
           final JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(project);
           arguments[idx] = javaPsiFacade.getElementFactory().createExpressionFromText(
-            "(" + StringUtil.join(expression.getParameterList().getParameters(), parameter -> {
-              return parameter.getName();
-            }, ", ") + ") -> {}", expression);
+            "(" + StringUtil.join(expression.getParameterList().getParameters(), parameter -> parameter.getName(), ", ") + ") -> {}", expression);
           final PsiParameter[] methodParams = method.getParameterList().getParameters();
           final PsiSubstitutor substitutor = javaPsiFacade.getResolveHelper()
             .inferTypeArguments(typeParameters, methodParams, arguments, ((MethodCandidateInfo)resolveResult).getSiteSubstitutor(),
@@ -123,9 +121,7 @@ public class RedundantLambdaParameterTypeIntention extends PsiElementBaseIntenti
         text = parameters[0].getName();
       }
       else {
-        text = "(" + StringUtil.join(parameters, parameter -> {
-          return parameter.getName();
-        }, ", ") + ")";
+        text = "(" + StringUtil.join(parameters, parameter -> parameter.getName(), ", ") + ")";
       }
       final PsiLambdaExpression expression = (PsiLambdaExpression)JavaPsiFacade.getElementFactory(lambdaExpression.getProject())
         .createExpressionFromText(text + "->{}", lambdaExpression);
index 701e6c83d98d4e9125c02672b4b98b35b90fa034..a38ff4a594041bf077200d7ce3bc596283acda5c 100644 (file)
@@ -121,9 +121,7 @@ public abstract class CopyPasteReferenceProcessor<TRef extends PsiElement> exten
       askReferencesToRestore(project, refs, referenceData);
     }
     PsiDocumentManager.getInstance(project).commitAllDocuments();
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      restoreReferences(referenceData, refs);
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> restoreReferences(referenceData, refs));
   }
 
   protected static void addReferenceData(final PsiElement element,
index f1e63fd84d5306b9fcf4f013761f615c132af91b..9a97137d4c43f17cd4c38c5cba2779711f37119c 100644 (file)
@@ -47,8 +47,6 @@ public class GenerateAccessorProviderRegistrar {
   }
 
   protected synchronized static List<EncapsulatableClassMember> getEncapsulatableClassMembers(final PsiClass psiClass) {
-    return ContainerUtil.concat(ourProviders, s -> {
-      return s.fun(psiClass);
-    });
+    return ContainerUtil.concat(ourProviders, s -> s.fun(psiClass));
   }
 }
index d75058de94307e6feb1bd0320b16cd0838993516..d8f8501d87177712d56407993911ec6c7c9f4379 100644 (file)
@@ -95,9 +95,7 @@ public class GenerateConstructorHandler extends GenerateMembersHandlerBase {
         }
         else {
           final PsiSubstitutor substitutor = TypeConversionUtil.getSuperClassSubstitutor(baseClass, aClass, PsiSubstitutor.EMPTY);
-          PsiMethodMember[] constructors = ContainerUtil.map2Array(array, PsiMethodMember.class, s -> {
-            return new PsiMethodMember(s, substitutor);
-          });
+          PsiMethodMember[] constructors = ContainerUtil.map2Array(array, PsiMethodMember.class, s -> new PsiMethodMember(s, substitutor));
           MemberChooser<PsiMethodMember> chooser = new MemberChooser<PsiMethodMember>(constructors, false, true, project);
           chooser.setTitle(CodeInsightBundle.message("generate.constructor.super.constructor.chooser.title"));
           chooser.show();
@@ -296,9 +294,7 @@ public class GenerateConstructorHandler extends GenerateMembersHandlerBase {
         generator.generateSuperCallIfNeeded(buffer, baseConstructor.getParameterList().getParameters());
       }
       final PsiParameter[] parameters = fieldParams.toArray(new PsiParameter[fieldParams.size()]);
-      final List<String> existingNames = ContainerUtil.map(dummyConstructor.getParameterList().getParameters(), parameter -> {
-        return parameter.getName();
-      });
+      final List<String> existingNames = ContainerUtil.map(dummyConstructor.getParameterList().getParameters(), parameter -> parameter.getName());
       if (generator instanceof ConstructorBodyGeneratorEx) {
         ((ConstructorBodyGeneratorEx)generator).generateFieldInitialization(buffer, fields, parameters, existingNames);
       }
index 6b705ef8bb82111afa1ba85b1cb8c6569daf5767..9d1152d528fb1811f341fcfc5e8ad5566a7431af 100644 (file)
@@ -185,9 +185,7 @@ public class JavaOverrideImplementMemberChooser extends MemberChooser<PsiMethodM
   }
 
   private static PsiMethodMember[] convertToMethodMembers(Collection<CandidateInfo> candidates) {
-    return ContainerUtil.map2Array(candidates, PsiMethodMember.class, s -> {
-      return new PsiMethodMember(s);
-    });
+    return ContainerUtil.map2Array(candidates, PsiMethodMember.class, s -> new PsiMethodMember(s));
   }
 
   private class MySortByOverridingAction extends ToggleAction {
index 0858f5d9176d1e4a5d7bde00f86c491a3125b459..4ad2d7e766dea914cd22acc14f1d33c409c4798e 100644 (file)
@@ -281,9 +281,7 @@ public class OverrideImplementUtil extends OverrideImplementExploreUtil {
                                                                               boolean toCopyJavaDoc,
                                                                               boolean toInsertAtOverride)
     throws IncorrectOperationException {
-    List<CandidateInfo> candidateInfos = ContainerUtil.map2List(candidates, s -> {
-      return new CandidateInfo(s.getElement(), s.getSubstitutor());
-    });
+    List<CandidateInfo> candidateInfos = ContainerUtil.map2List(candidates, s -> new CandidateInfo(s.getElement(), s.getSubstitutor()));
     final List<PsiMethod> methods = overrideOrImplementMethodCandidates(aClass, candidateInfos, toCopyJavaDoc, toInsertAtOverride);
     return convert2GenerationInfos(methods);
   }
@@ -302,9 +300,7 @@ public class OverrideImplementUtil extends OverrideImplementExploreUtil {
   }
 
   public static List<PsiGenerationInfo<PsiMethod>> convert2GenerationInfos(final Collection<PsiMethod> methods) {
-    return ContainerUtil.map2List(methods, s -> {
-      return createGenerationInfo(s);
-    });
+    return ContainerUtil.map2List(methods, s -> createGenerationInfo(s));
   }
 
   public static PsiGenerationInfo<PsiMethod> createGenerationInfo(PsiMethod s) {
index 07649f26b5ec3fb310067cb8826d7ba25eed4c78..3dc1d803a82a57fbc5493a1352b1a003def31a25 100644 (file)
@@ -106,9 +106,7 @@ public class ReferenceParameterInfoHandler implements ParameterInfoHandler<PsiRe
     buffer.append(" extends ");
     buffer.append(StringUtil.join(
       Arrays.asList(typeParameter.getSuperTypes()),
-      t -> {
-        return t.getPresentableText();
-      }, ", "));
+      t -> t.getPresentableText(), ", "));
 
     context.setupUIComponentPresentation(buffer.toString(), 0, highlightEndOffset, false, false, false,
                                          context.getDefaultParameterColor());
index ccb306c809850ca6bfdef65466fc0b44c01fdf78..f01848a282bfbe5599c017a23cbc340968402b82 100644 (file)
@@ -65,9 +65,7 @@ public class CopyAbstractMethodImplementationHandler {
   }
 
   public void invoke() {
-    ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> ApplicationManager.getApplication().runReadAction(() -> {
-      searchExistingImplementations();
-    }), CodeInsightBundle.message("searching.for.implementations"), false, myProject);
+    ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> ApplicationManager.getApplication().runReadAction(() -> searchExistingImplementations()), CodeInsightBundle.message("searching.for.implementations"), false, myProject);
     if (mySourceMethods.isEmpty()) {
       Messages.showErrorDialog(myProject, CodeInsightBundle.message("copy.abstract.method.no.existing.implementations.found"),
                                CodeInsightBundle.message("copy.abstract.method.title"));
index b9cb797331c31122f802fbacebdb9c48aab9b508..d9ad26085d16f23909298699cf383cd150db0024 100644 (file)
@@ -446,9 +446,7 @@ public class JavaDocInfoGenerator {
           buffer.append("<html><body></body></html>");
         }
         String errorSection = "<p id=\"error\">Following external urls were checked:<br>&nbsp;&nbsp;&nbsp;<i>" +
-                              StringUtil.join(docURLs, url -> {
-                                return XmlStringUtil.escapeString(url);
-                              }, "</i><br>&nbsp;&nbsp;&nbsp;<i>") +
+                              StringUtil.join(docURLs, url -> XmlStringUtil.escapeString(url), "</i><br>&nbsp;&nbsp;&nbsp;<i>") +
                               "</i><br>The documentation for this element is not found. Please add all the needed paths to API docs in " +
                               "<a href=\"open://Project Settings\">Project Settings.</a></p>";
         buffer.insert(buffer.indexOf("<body>"), errorSection);
index a0a158cb4e49b5012b7d3f60cb1e6a5aca153a7d..4b7b9fe06ab31f7cb12378b8d031137280afa6d7 100644 (file)
@@ -67,9 +67,7 @@ public class GroovyScriptMacro extends Macro {
         Result paramResult = params[i].calculateResult(context);
         Object value = null;
         if (paramResult instanceof ListResult) {
-          value = ContainerUtil.map2List(((ListResult)paramResult).getComponents(), result1 -> {
-            return result1.toString();
-          });
+          value = ContainerUtil.map2List(((ListResult)paramResult).getComponents(), result1 -> result1.toString());
         } else if (paramResult != null) {
           value = paramResult.toString();
         }
index 1380a5641d247d708f6867f0357e4e325eb1705f..e3894027d575b4d2707020547b2dd3175f795827 100644 (file)
@@ -83,13 +83,11 @@ public class JavaPostfixTemplateProvider implements PostfixTemplateProvider {
     ApplicationManager.getApplication().assertIsDispatchThread();
 
     if (isSemicolonNeeded(file, editor)) {
-      ApplicationManager.getApplication().runWriteAction(() -> {
-        CommandProcessor.getInstance().runUndoTransparentAction(
-          () -> {
-            EditorModificationUtil.insertStringAtCaret(editor, ";", false, false);
-            PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument());
-          });
-      });
+      ApplicationManager.getApplication().runWriteAction(() -> CommandProcessor.getInstance().runUndoTransparentAction(
+        () -> {
+          EditorModificationUtil.insertStringAtCaret(editor, ";", false, false);
+          PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument());
+        }));
     }
   }
 
index 7e523b53a4a51fd776c49854e68c64b6e4bddbe3..0d99c4ef4c3b3ca20b1e78028d59a66aacd08a75 100644 (file)
@@ -279,9 +279,7 @@ public class CollectionAddAllCanBeReplacedWithConstructorInspection extends Base
     if (psiExpression instanceof PsiReferenceExpression) {
       references.add((PsiReferenceExpression)psiExpression);
     }
-    return ContainerUtil.mapNotNull(references, (NullableFunction<PsiReferenceExpression, PsiElement>)expression1 -> {
-      return expression1.resolve();
-    });
+    return ContainerUtil.mapNotNull(references, (NullableFunction<PsiReferenceExpression, PsiElement>)expression1 -> expression1.resolve());
   }
 
   private static boolean isReferenceToOneOf(PsiReferenceExpression reference, List<PsiElement> elements) {
index d344ebc9c2b42ef218d8f9e549011c27fb33bab3..44b361bfcdcfcce022837eff5e96cce5164be395 100644 (file)
@@ -333,9 +333,7 @@ public class EmptyMethodInspection extends GlobalJavaBatchInspectionTool {
           });
         }
 
-        ApplicationManager.getApplication().invokeLater(() -> {
-          SafeDeleteHandler.invoke(project, PsiUtilCore.toPsiElementArray(psiElements), false);
-        }, project.getDisposed());
+        ApplicationManager.getApplication().invokeLater(() -> SafeDeleteHandler.invoke(project, PsiUtilCore.toPsiElementArray(psiElements), false), project.getDisposed());
       }
     }
   }
@@ -399,9 +397,7 @@ public class EmptyMethodInspection extends GlobalJavaBatchInspectionTool {
           }
         }
       }
-      ApplicationManager.getApplication().invokeLater(() -> {
-        SafeDeleteHandler.invoke(project, PsiUtilCore.toPsiElementArray(psiElementsToIgnore), false, refreshViews);
-      }, project.getDisposed());
+      ApplicationManager.getApplication().invokeLater(() -> SafeDeleteHandler.invoke(project, PsiUtilCore.toPsiElementArray(psiElementsToIgnore), false, refreshViews), project.getDisposed());
     }
   }
 }
index 2b33f2d50c372695ee4be71bda0dc24a951e773f..6a9b2a5ffd63a4b3254d5f847219574645c450b0 100644 (file)
@@ -273,9 +273,7 @@ public class InferNullityAnnotationsAction extends BaseAnalysisAction {
   private void showUsageView(@NotNull Project project, final UsageInfo[] usageInfos, @NotNull AnalysisScope scope) {
     final UsageTarget[] targets = UsageTarget.EMPTY_ARRAY;
     final Ref<Usage[]> convertUsagesRef = new Ref<Usage[]>();
-    if (!ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> ApplicationManager.getApplication().runReadAction(() -> {
-      convertUsagesRef.set(UsageInfo2UsageAdapter.convert(usageInfos));
-    }), "Preprocess Usages", true, project)) return;
+    if (!ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> ApplicationManager.getApplication().runReadAction(() -> convertUsagesRef.set(UsageInfo2UsageAdapter.convert(usageInfos))), "Preprocess Usages", true, project)) return;
 
     if (convertUsagesRef.isNull()) return;
     final Usage[] usages = convertUsagesRef.get();
index 213ff180fb86a8acb82d72cb554129139de41c6d..83f5d02dbc63aa655f9685e424e92b6534ac2f01 100644 (file)
@@ -182,9 +182,7 @@ public class NullityInferrer {
   private static void invoke(final Project project,
                              final PsiModifierListOwner element,
                              final String fqn, final String toRemove) {
-    WriteCommandAction.runWriteCommandAction(project, () -> {
-      new AddAnnotationFix(fqn, element, toRemove).invoke(project, null, element.getContainingFile());
-    });
+    WriteCommandAction.runWriteCommandAction(project, () -> new AddAnnotationFix(fqn, element, toRemove).invoke(project, null, element.getContainingFile()));
   }
 
   public int getCount() {
index ff5ba95f034b3b7985e84ae12ae8a4fdfac0a1a6..0cce907be91017915910972bcb6df5628ac96212 100644 (file)
@@ -209,9 +209,7 @@ public class AddMethodsDialog extends DialogWrapper {
     final String fqn = aClass.getQualifiedName();
     LOG.assertTrue(fqn != null);
     final String parameters =
-      StringUtil.join(ContainerUtil.map(method.getParameterList().getParameters(), parameter -> {
-        return parameter.getName();
-      }), ", ");
+      StringUtil.join(ContainerUtil.map(method.getParameterList().getParameters(), parameter -> parameter.getName()), ", ");
     final String expressionText = fqn + "." + method.getName() + "(" + parameters + ")";
     final PsiExpression psiExpression = JavaPsiFacade.getElementFactory(method.getProject())
       .createExpressionFromText(expressionText, null);
index bc976a85f807ce224f682b4bc822c700f2f24ff6..49a82b8c69a554843fc824cc82078ba490162929 100644 (file)
@@ -95,9 +95,7 @@ public class PseudoLambdaReplaceTemplate {
   public ValidationInfo validate(final PsiMethod method) {
     final PsiParameter[] parameters = method.getParameterList().getParameters();
     final PsiType[] parameterTypes =
-      ContainerUtil.map2Array(Arrays.asList(parameters), new PsiType[parameters.length], parameter -> {
-        return parameter.getType();
-      });
+      ContainerUtil.map2Array(Arrays.asList(parameters), new PsiType[parameters.length], parameter -> parameter.getType());
     final PsiType returnType = method.getReturnType();
 
     if (StreamApiConstants.FAKE_FIND_MATCHED.equals(myStreamApiMethodName)) {
index ecbb97ddede92ed62dea9421f478a0f583dc0928..1fbd0673b5ac541b74dd7d8031e40669d4cb64df 100644 (file)
@@ -47,43 +47,41 @@ abstract class OverrideImplementMethodAction extends AnAction {
     if (project == null) return;
 
     final String commandName = event.getPresentation().getText();
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      CommandProcessor.getInstance().executeCommand(project, () -> {
-
-        try{
-          final HierarchyNodeDescriptor[] selectedDescriptors = methodHierarchyBrowser.getSelectedDescriptors();
-          if (selectedDescriptors.length > 0) {
-            final List<VirtualFile> files = new ArrayList<VirtualFile>(selectedDescriptors.length);
-            for (HierarchyNodeDescriptor selectedDescriptor : selectedDescriptors) {
-              final PsiFile containingFile = ((MethodHierarchyNodeDescriptor)selectedDescriptor).getPsiClass().getContainingFile();
-              if (containingFile != null) {
-                final VirtualFile vFile = containingFile.getVirtualFile();
-                if (vFile != null) {
-                  files.add(vFile);
-                }
+    ApplicationManager.getApplication().runWriteAction(() -> CommandProcessor.getInstance().executeCommand(project, () -> {
+
+      try{
+        final HierarchyNodeDescriptor[] selectedDescriptors = methodHierarchyBrowser.getSelectedDescriptors();
+        if (selectedDescriptors.length > 0) {
+          final List<VirtualFile> files = new ArrayList<VirtualFile>(selectedDescriptors.length);
+          for (HierarchyNodeDescriptor selectedDescriptor : selectedDescriptors) {
+            final PsiFile containingFile = ((MethodHierarchyNodeDescriptor)selectedDescriptor).getPsiClass().getContainingFile();
+            if (containingFile != null) {
+              final VirtualFile vFile = containingFile.getVirtualFile();
+              if (vFile != null) {
+                files.add(vFile);
               }
             }
-            final ReadonlyStatusHandler.OperationStatus status = ReadonlyStatusHandler.getInstance(project).ensureFilesWritable(VfsUtil.toVirtualFileArray(files));
-            if (!status.hasReadonlyFiles()) {
-              for (HierarchyNodeDescriptor selectedDescriptor : selectedDescriptors) {
-                final PsiElement aClass = ((MethodHierarchyNodeDescriptor)selectedDescriptor).getPsiClass();
-                if (aClass instanceof PsiClass) {
-                  OverrideImplementUtil.overrideOrImplement((PsiClass)aClass, methodHierarchyBrowser.getBaseMethod());
-                }
+          }
+          final ReadonlyStatusHandler.OperationStatus status = ReadonlyStatusHandler.getInstance(project).ensureFilesWritable(VfsUtil.toVirtualFileArray(files));
+          if (!status.hasReadonlyFiles()) {
+            for (HierarchyNodeDescriptor selectedDescriptor : selectedDescriptors) {
+              final PsiElement aClass = ((MethodHierarchyNodeDescriptor)selectedDescriptor).getPsiClass();
+              if (aClass instanceof PsiClass) {
+                OverrideImplementUtil.overrideOrImplement((PsiClass)aClass, methodHierarchyBrowser.getBaseMethod());
               }
-              ToolWindowManager.getInstance(project).activateEditorComponent();
-            }
-            else {
-              ApplicationManager.getApplication().invokeLater(
-                () -> Messages.showErrorDialog(project, status.getReadonlyFilesMessage(), commandName));
             }
+            ToolWindowManager.getInstance(project).activateEditorComponent();
+          }
+          else {
+            ApplicationManager.getApplication().invokeLater(
+              () -> Messages.showErrorDialog(project, status.getReadonlyFilesMessage(), commandName));
           }
         }
-        catch(IncorrectOperationException e){
-          LOG.error(e);
-        }
-      }, commandName, null);
-    });
+      }
+      catch(IncorrectOperationException e){
+        LOG.error(e);
+      }
+    }, commandName, null));
   }
 
   public final void update(final AnActionEvent e) {
index c7deee36b44e89c2203b0594f3bdd345cd606c68..8812226e296733d27d962d6f84607c29a23d53b8 100644 (file)
@@ -74,9 +74,7 @@ public class StaticIconFieldsAction extends AnAction {
   }
 
   private static void searchFields(final PsiClass allIcons, final UsageView view, final ProgressIndicator indicator) {
-    ApplicationManager.getApplication().runReadAction(() -> {
-      indicator.setText("Searching for: " + allIcons.getQualifiedName());
-    });
+    ApplicationManager.getApplication().runReadAction(() -> indicator.setText("Searching for: " + allIcons.getQualifiedName()));
 
     ReferencesSearch.search(allIcons).forEach(reference -> {
       PsiElement elt = reference.getElement();
index 6c826405fcc7d8db53909e698b9c89bc1c25eb51..a1899cadc5db8e6da58b26dc8d1858ee67e24f8d 100644 (file)
@@ -266,13 +266,9 @@ public class JavaSdkImpl extends JavaSdk {
   }
 
   private static void scanFolder(File javasFolder, ArrayList<String> result) {
-    File[] candidates = javasFolder.listFiles(pathname -> {
-      return JdkUtil.checkForJdk(pathname);
-    });
+    File[] candidates = javasFolder.listFiles(pathname -> JdkUtil.checkForJdk(pathname));
     if (candidates != null) {
-      result.addAll(ContainerUtil.map2List(candidates, file -> {
-        return file.getAbsolutePath();
-      }));
+      result.addAll(ContainerUtil.map2List(candidates, file -> file.getAbsolutePath()));
     }
   }
 
index ca4bdc161aeb1b03a6f4607f8fb2e95408794b10..3d4db7d5cbd56a99b3664a4055c4dc85b6dc7c0e 100644 (file)
@@ -55,8 +55,6 @@ public class LanguageLevelUsagesCollector extends AbstractApplicationUsagesColle
     }
     languageLevels.add(LanguageLevelProjectExtension.getInstance(project).getLanguageLevel().toString());
 
-    return ContainerUtil.map2Set(languageLevels, languageLevel -> {
-      return new UsageDescriptor(languageLevel, 1);
-    });
+    return ContainerUtil.map2Set(languageLevels, languageLevel -> new UsageDescriptor(languageLevel, 1));
   }
 }
index 16c1fd6ff693df8d5e470a960061ca231f14af55..152b1071d251309a2c56e00f1be4a3870d6ca41e 100644 (file)
@@ -169,9 +169,7 @@ public class RefResolveServiceImpl extends RefResolveService implements Runnable
   @NotNull
   private static String toVfString(@NotNull Collection<VirtualFile> list) {
     List<VirtualFile> sub = new ArrayList<VirtualFile>(list).subList(0, Math.min(list.size(), 100));
-    return list.size() + " files: " + StringUtil.join(sub, file -> {
-      return file.getName();
-    }, ", ") + (list.size() == sub.size() ? "" : "...");
+    return list.size() + " files: " + StringUtil.join(sub, file -> file.getName(), ", ") + (list.size() == sub.size() ? "" : "...");
   }
 
   private void initListeners(@NotNull MessageBus messageBus, @NotNull PsiManager psiManager) {
@@ -538,9 +536,7 @@ public class RefResolveServiceImpl extends RefResolveService implements Runnable
       }, indicator);
       return result[0];
     };
-    List<Future<Boolean>> futures = ContainerUtil.map(Collections.nCopies(parallelism, ""), s -> {
-      return myApplication.executeOnPooledThread(processFileFromSet);
-    });
+    List<Future<Boolean>> futures = ContainerUtil.map(Collections.nCopies(parallelism, ""), s -> myApplication.executeOnPooledThread(processFileFromSet));
 
     List<Boolean> results = ContainerUtil.map(futures, future -> {
       try {
index 2d72db1372d6a9ef32e9264600a14db0d53d1d2f..96b897f2fce5f16e17d9b380be5cf52591a82fde 100644 (file)
@@ -42,9 +42,7 @@ public class PsiEnter {
   }
 
   void enter(final PsiClassOwner psiClassOwner) {
-    ApplicationManager.getApplication().runReadAction(() -> {
-      enterTopLevels(psiClassOwner);
-    });
+    ApplicationManager.getApplication().runReadAction(() -> enterTopLevels(psiClassOwner));
   }
 
   private void enterTopLevels(PsiClassOwner owner) {
index 16397ee6a5803f2ebb7a906761065716fa6c153f..fe4c2def71a0768898ffb011b43294ca7ccade3f 100644 (file)
@@ -32,9 +32,7 @@ public class PsiHierachyConnector implements HierarchyConnector {
 
   @Override
   public void connect(final Symbol sym) {
-    ApplicationManager.getApplication().runReadAction(() -> {
-      connectInternal((Symbol.ClassSymbol)sym);
-    });
+    ApplicationManager.getApplication().runReadAction(() -> connectInternal((Symbol.ClassSymbol)sym));
   }
 
   private void connectInternal(Symbol.ClassSymbol sym) {
index a91b3a32595777578162aaa42c6d7164db4e7a0d..7a29b2432ee2a866ae897461d01c47c8c0b2372e 100644 (file)
@@ -58,9 +58,7 @@ public class TestStubHierarchyAction extends InheritanceAction {
       int size = symbols.myClassAnchors.length;
       for (int i = 0; i < size; i++) {
         final int finalI = i;
-        ApplicationManager.getApplication().runReadAction(() -> {
-          test(classes[finalI]);
-        });
+        ApplicationManager.getApplication().runReadAction(() -> test(classes[finalI]));
         indicator.setFraction(i * 1.0 / (double)size);
       }
       LOG.info("TestStubHierarchyAction finished");
index 5ecda1c11d86b1864c311b6a132c718d6fc2a343..3ea6a681b86a2a6c12b6950374402f74ff125435 100644 (file)
@@ -90,9 +90,7 @@ public interface TypeParameterInfo {
 
     private static String getCanonicalText(PsiType boundType) {
       if (boundType instanceof PsiIntersectionType) {
-        return StringUtil.join(ContainerUtil.map(((PsiIntersectionType)boundType).getConjuncts(), type -> {
-          return type.getCanonicalText();
-        }), " & ");
+        return StringUtil.join(ContainerUtil.map(((PsiIntersectionType)boundType).getConjuncts(), type -> type.getCanonicalText()), " & ");
       }
       return boundType.getCanonicalText();
     }
index 93f319d43a8104251097f09cdfd7bd55fab03491..592eb4114f68c65c4ec64362705ef2695a2123e5 100644 (file)
@@ -618,9 +618,7 @@ public class ExtractMethodProcessor implements MatchProvider {
         return statement instanceof PsiReturnStatement && ((PsiReturnStatement)statement).getReturnValue() != null;
       }
     });
-    final List<PsiExpression> map = ContainerUtil.map(filter, statement -> {
-      return ((PsiReturnStatement)statement).getReturnValue();
-    });
+    final List<PsiExpression> map = ContainerUtil.map(filter, statement -> ((PsiReturnStatement)statement).getReturnValue());
     return map.toArray(new PsiExpression[map.size()]);
   }
 
index 9c5292388fb18b6270c6ea3131b1674b78064ccb..cbf60b44b606fca22a4cf261853c2cdec1fb4067 100644 (file)
@@ -103,13 +103,9 @@ public class ExtractMethodObjectHandler implements RefactoringActionHandler, Con
     CommandProcessor.getInstance().executeCommand(project,
                                                   () -> PostprocessReformattingAspect.getInstance(project).postponeFormattingInside(() -> {
                                                     try {
-                                                      ApplicationManager.getApplication().runWriteAction(() -> {
-                                                        extractProcessor.doRefactoring();
-                                                      });
+                                                      ApplicationManager.getApplication().runWriteAction(() -> extractProcessor.doRefactoring());
                                                       processor.run();
-                                                      ApplicationManager.getApplication().runWriteAction(() -> {
-                                                        processor.runChangeSignature();
-                                                      });
+                                                      ApplicationManager.getApplication().runWriteAction(() -> processor.runChangeSignature());
                                                     }
                                                     catch (IncorrectOperationException e) {
                                                       LOG.error(e);
@@ -117,9 +113,7 @@ public class ExtractMethodObjectHandler implements RefactoringActionHandler, Con
 
                                                     PsiDocumentManager.getInstance(project).commitAllDocuments();
                                                     if (processor.isCreateInnerClass()) {
-                                                      ApplicationManager.getApplication().runWriteAction(() -> {
-                                                        processor.moveUsedMethodsToInner();
-                                                      });
+                                                      ApplicationManager.getApplication().runWriteAction(() -> processor.moveUsedMethodsToInner());
                                                       PsiDocumentManager.getInstance(project).commitAllDocuments();
                                                       if (editor != null) {
                                                         DuplicatesImpl.processDuplicates(extractProcessor, project, editor);
index c2a652dc08c6c4269e6d3f0af4a5a4ac9b536d45..2ad003b011bce0c82b69590cd3eb2fa906130329 100644 (file)
@@ -163,9 +163,7 @@ public class ExtractClassProcessor extends FixableUsagesRefactoringProcessor {
                                                 myClass.getContainingFile().getContainingDirectory().getVirtualFile())) {
       conflicts.putValue(sourceClass, "Extracted class won't be accessible in " + RefactoringUIUtil.getDescription(sourceClass, true));
     }
-    ApplicationManager.getApplication().runWriteAction(() -> {
-      myClass.delete();
-    });
+    ApplicationManager.getApplication().runWriteAction(() -> myClass.delete());
     final Project project = sourceClass.getProject();
     final GlobalSearchScope scope = GlobalSearchScope.allScope(project);
     final PsiClass existingClass =
index 20ba4a534f089e8bd27308fe6ada0eb5b12a1b7e..81c3b3603e6b4147d8ed8fdee1277435f09ffac6 100644 (file)
--- a/