diff --git a/java/ide-customization/resources/META-INF/plugin.xml b/java/ide-customization/resources/META-INF/plugin.xml
index 5e34f9d9f8f4..f80b443a0958 100644
--- a/java/ide-customization/resources/META-INF/plugin.xml
+++ b/java/ide-customization/resources/META-INF/plugin.xml
@@ -35,8 +35,6 @@
-
-
diff --git a/platform/platform-resources/src/META-INF/LangExtensions.xml b/platform/platform-resources/src/META-INF/LangExtensions.xml
index 9de57674c227..87d71874c65d 100644
--- a/platform/platform-resources/src/META-INF/LangExtensions.xml
+++ b/platform/platform-resources/src/META-INF/LangExtensions.xml
@@ -695,6 +695,7 @@
+
diff --git a/platform/usageView/src/com/intellij/usages/impl/ImportUsageFilteringRuleProvider.java b/platform/usageView/src/com/intellij/usages/impl/ImportUsageFilteringRuleProvider.java
index afa35340592c..3446b820b3bd 100644
--- a/platform/usageView/src/com/intellij/usages/impl/ImportUsageFilteringRuleProvider.java
+++ b/platform/usageView/src/com/intellij/usages/impl/ImportUsageFilteringRuleProvider.java
@@ -1,4 +1,4 @@
-// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
+// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.usages.impl;
import com.intellij.icons.AllIcons;
@@ -32,7 +32,7 @@ public final class ImportUsageFilteringRuleProvider implements UsageFilteringRul
@Override
public AnAction @NotNull [] createFilteringActions(@NotNull UsageView view) {
- if (view.getPresentation().isCodeUsages()) {
+ if (view.getPresentation().isCodeUsages() && ImportFilteringRule.EP_NAME.hasAnyExtensions()) {
JComponent component = view.getComponent();
UsageViewImpl impl = (UsageViewImpl)view;
ShowImportsAction showImportsAction = new ShowImportsAction();
diff --git a/python/resources/META-INF/pycharm-core.xml b/python/resources/META-INF/pycharm-core.xml
index bad9e1134331..0a226071c22d 100644
--- a/python/resources/META-INF/pycharm-core.xml
+++ b/python/resources/META-INF/pycharm-core.xml
@@ -14,8 +14,6 @@
-
-