*/
@Override
// Note that this method gets its information from inspecting the Psi element tree, so must use the runReadAction and
// Computable because it's not run from the normal thread that deals with them.
public ValidityState getValidityState() {
final PbFile pbFile = ApplicationManager.getApplication().runReadAction(new Computable<PbFile>() {
public PbFile compute() {
return (PbFile) PsiManager.getInstance(myModule.getProject()).findFile(myFile);
}
});
String packageName = ApplicationManager.getApplication().runReadAction(new Computable<String>() {