boolean (Object object) { if (!(object instanceof Joined)) return false; return myFile.getVirtualFile().getNameWithoutExtension() .equals(((Joined)object).myFile.getVirtualFile().getNameWithoutExtension()); }