boolean () { if (isEditable()) { return true; } VirtualFile sourceFileToCheckOut = null; if (!GuiDesignerConfiguration.getInstance(getProject()).INSTRUMENT_CLASSES) { final String classToBind = myRootContainer.getClassToBind(); if (classToBind != null && !classToBind.isEmpty()) { PsiClass psiClass = FormEditingUtil.findClassToBind(getModule(), classToBind); if (psiClass != null) { sourceFileToCheckOut = psiClass.getContainingFile().getVirtualFile(); } } } final ReadonlyStatusHandler.OperationStatus status; if (sourceFileToCheckOut != null) { status = ReadonlyStatusHandler.getInstance(getProject()).ensureFilesWritable(Arrays.asList(myFile, sourceFileToCheckOut)); } else { status = ReadonlyStatusHandler.getInstance(getProject()).ensureFilesWritable(Collections.singletonList(myFile)); } return !status.hasReadonlyFiles(); }