boolean (Module module) { if (module == null) { return false; } if (ModuleType.get(module) instanceof PythonModuleTypeBase) { return true; } final Facet[] allFacets = FacetManager.getInstance(module).getAllFacets(); for (Facet facet : allFacets) { if (facet.getConfiguration() instanceof PythonFacetSettings) { return true; } } return false; }