diff --git a/OsmAnd/test/java/net/osmand/plus/settings/fragments/search/SettingsSearchTest.java b/OsmAnd/test/java/net/osmand/plus/settings/fragments/search/SettingsSearchTest.java
index d0b58b843a3..c100902cefb 100644
--- a/OsmAnd/test/java/net/osmand/plus/settings/fragments/search/SettingsSearchTest.java
+++ b/OsmAnd/test/java/net/osmand/plus/settings/fragments/search/SettingsSearchTest.java
@@ -136,11 +136,11 @@ public static Matcher<View> hasSearchResultWithSubstring(final String substring)
 	}
 
 	private void enablePlugin(final Class<? extends OsmandPlugin> plugin) {
-		PluginsHelper.enablePlugin(
-				null,
-				app,
-				getPlugin(plugin),
-				true);
+		enablePlugin(getPlugin(plugin));
+	}
+
+	private void enablePlugin(final OsmandPlugin plugin) {
+		PluginsHelper.enablePlugin(null, app, plugin, true);
 	}
 
 	private static <T extends OsmandPlugin> T getPlugin(final Class<T> plugin) {