19
19
import com .intellij .util .io .DataExternalizer ;
20
20
import com .intellij .util .io .EnumeratorStringDescriptor ;
21
21
import com .intellij .util .io .KeyDescriptor ;
22
- import com .jetbrains .php .PhpIndex ;
23
22
import com .jetbrains .php .lang .PhpLangUtil ;
24
23
import com .magento .idea .magento2plugin .magento .files .ModuleDiXml ;
25
24
import com .magento .idea .magento2plugin .project .Settings ;
@@ -91,7 +90,6 @@ public Map<String, Set<PluginData>> map(final @NotNull FileContent fileContent)
91
90
92
91
@ SuppressWarnings ("checkstyle:LineLength" )
93
92
private Set <PluginData > getPluginsForType (final XmlTag typeNode ) {
94
- final PhpIndex phpIndex = PhpIndex .getInstance (typeNode .getProject ());
95
93
final Set <PluginData > results = new HashSet <>();
96
94
97
95
for (final XmlTag pluginTag : typeNode .findSubTags (ModuleDiXml .PLUGIN_TAG_NAME )) {
@@ -100,12 +98,7 @@ private Set<PluginData> getPluginsForType(final XmlTag typeNode) {
100
98
101
99
if (pluginType != null && !pluginType .isEmpty ()) {
102
100
final PluginData pluginData = getPluginDataObject (pluginType , getIntegerOrZeroValue (pluginSortOrder ));
103
- try {
104
- phpIndex .getAnyByFQN (pluginData .getType ());
105
- results .add (pluginData );
106
- } catch (Throwable exception ) { //NOPMD
107
- //do nothing
108
- }
101
+ results .add (pluginData );
109
102
}
110
103
}
111
104
@@ -128,7 +121,7 @@ private PluginData getPluginDataObject(
128
121
final String pluginType ,
129
122
final Integer sortOrder
130
123
) {
131
- return new PluginData (pluginType , sortOrder );
124
+ return new PluginData (pluginType , sortOrder );
132
125
}
133
126
};
134
127
}
0 commit comments