FileBaseMatch (final String beforeName, final VirtualFile file) { if (beforeName == null) { return null; } String[] parts = getPathParts(beforeName); return compareNamesImpl(parts, file.getParent(), parts.length - 2); }