boolean (final VirtualFile virtualFile) { if (virtualFile.isInLocalFileSystem() && virtualFile.isValid()) { String extension = virtualFile.getExtension(); if ("xml".equalsIgnoreCase(extension)) { final String result = NanoXmlUtil.parseHeader(virtualFile).getRootTagLocalName(); if (result != null && result.equals(SUITE_TAG_NAME)) { return true; } } else if ("yaml".equals(extension)) { return true; } } return false; }