FileType () { if (LOG == null) { LOG = Logger.getInstance(ResponseType.class); } try { Class<?> xPathClass = Class.forName("org.intellij.lang.xpath.XPathFileType"); LOG.debug("XPathFileType class loaded successfully"); return (FileType)xPathClass.getField("XPATH").get(null); } catch (Exception e) { LOG.debug("XPathFileType class not found. Using PlainText.INSTANCE instead"); return PlainTextFileType.INSTANCE; } }